-
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: set relative positioning explicitly on scroll containers #5714
fix: set relative positioning explicitly on scroll containers #5714
Conversation
Thanks for a detailed clarification. I recall seeing something like this earlier during debugging. |
9efcb53
to
e2c898e
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi @bwajtr , this commit cannot be picked to 23.3 by this bot, can you take a look and pick it manually? |
This ticket/PR has been released with Vaadin 24.1.0.alpha2 and is also targeting the upcoming stable 24.1.0 version. |
Description
This PR fixes the showing of the horizontal scrollbar in ComboBoxes (and other components) in Firefox (version greater or equal 105) when the component is put into a more complex web component structure. For more details on how to reliably reproduce the issue and more details please see this comment.
Just a short recap of the root cause:
We were discussing the possiblity to fix the issue directly in the Javascript code in here:
web-components/packages/component-base/src/virtualizer-iron-list-adapter.js
Lines 48 to 50 in 1cf96ee
Where we could check if
getComputedStyle()
returned an empty value. However, after some discussions, we decided to fix the issue by explicitly setting theposition: relative
in CSS for each of the affected components, as it is more understandable fix.Fixes #5590
Type of change
Checklist