-
Notifications
You must be signed in to change notification settings - Fork 4.8k
DataViews: Fix layout scrolling in constrained-height containers #76453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
473a472
2b7debe
fcb6f01
f400645
052db07
7e1b654
ceb4e49
7a54c76
cd813e7
0c4bbb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| .dataviews-layout__container { | ||
| flex: 1; | ||
| min-height: 0; | ||
| overflow: auto; | ||
| display: flex; | ||
| flex-direction: column; | ||
| background-color: inherit; | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -102,9 +102,9 @@ function PlanetOverview( { planets }: { planets: SpaceObject[] } ) { | |||||
| </Stack> | ||||||
| </CardBody> | ||||||
| </Card> | ||||||
| <DataViews.Layout className="free-composition-dataviews-layout" /> | ||||||
| </Stack> | ||||||
| </div> | ||||||
| <DataViews.Layout className="free-composition-dataviews-layout" /> | ||||||
|
||||||
| <DataViews.Layout className="free-composition-dataviews-layout" /> | |
| <DataViews.Layout /> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,12 +106,6 @@ const InfiniteScroll = () => { | |
|
|
||
| return ( | ||
| <> | ||
| <style>{ ` | ||
| .dataviews-wrapper { | ||
| height: 600px; | ||
| overflow: auto; | ||
| } | ||
| ` }</style> | ||
| <Text | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This code was in place to ensure that infinite scroll was triggered on this story at any window size. Removing it has broken infinite scrolling in the story.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch! I fixed it with #76566 |
||
| style={ { | ||
| marginBottom: '16px', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this was a mistake. Before
Layoutwas a child of thefree-composition-headerdiv.