-
Notifications
You must be signed in to change notification settings - Fork 83
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
fix: observe internal layout to avoid problems with fixed height #8268
Conversation
Quality Gate passedIssues Measures |
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.
Can you remember why we change the opacity in the first place? The comment mentions something about "avoid jumps", but opacity doesn't affect the size of the element.
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.
The jump can happen e.g. in case from vaadin/flow-components#6728 (comment) when form layout becomes visible:
form-layout-jump.mp4
…) (#8280) Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
…) (#8279) Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
This ticket/PR has been released with Vaadin 24.6.0. |
Description
Fixes vaadin/flow#20598 (which is a regression from #7988)
This is a fix for the case when
vaadin-form-layout
height is inherited from a fixed-size parent element (which is what happens in Flow due to the fact that it setsheight: 100vh
on the<body>
and outlet element).Currently, when scrolling long enough, the layout is becoming "not intersecting" and
opacity
is wrongly set to 0. This change ensures thatIntersectionObserver
instead uses the internal element since its height is defined by content.Type of change