-
Notifications
You must be signed in to change notification settings - Fork 77
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
Closed floating elements should not cause scrollbars #10240
Comments
@geospatialem @DitwanP moved this one to October. |
@driskull @geospatialem Any chance this one could get priortized for a 2.13 patch? It affects a few spots in MV. We are investigating the workaround desccribed in the JSAPI issue, but it would have to be implemented in quite a fewplaces. |
@zaramatheson let me know if the workaround is working for you. I'll defer to @jcfranco and @geospatialem for when this can be installed. |
It could be a separate issue than this one. From the screenshot gifs, it seems like its more likely a flex/display issue. Something isn't taking up its full height which is causing the multiple scroll bars. Its hard to be sure without a good reproduction case we can use. If it is the Can you try setting |
**Related Issue:** #10240 ## Summary - Sets floating element dimensions to zero when not open - This makes sure that a closed floating-ui element doesn't produce scrollbars within a parent element. - This is handled by setting the style on the floating element container to `display:none` when not open. - [Popover, Tooltip]: Moves position styles from the host to an internal element to avoid style clashes. - This is better because the positioning styles won't interfere with any light DOM styling - This added benefit is less CSS in the floating-ui CSS file. - `display:none` is removed in the `onClose` of the component so that the animation can finish before its set to be hidden. - This restores closing animation in floating ui elements. - Cleanup floating-ui methods - Add story - Update tests Avoids closed floating ui elements from affecting layout changes. Example: <img width="272" alt="image" src="https://github.com/user-attachments/assets/c4366635-8106-4e7c-b4d5-9b5ca03ae1d7">
Installed and assigned for verification. |
Verified in |
Check existing issues
Actual Behavior
Closed floating elements cause scrollbars
Expected Behavior
Closed floating elements should not cause scrollbars
Reproduction Sample
https://codepen.io/driskull/pen/RwzEMYv?editors=1100
Reproduction Steps
Reproduction Version
2.12.2
Relevant Info
https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/63967
Regression?
No
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: