-
Notifications
You must be signed in to change notification settings - Fork 76
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 are taking up visual space when being dragged #8214
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
Milestone
Comments
driskull
added
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
0 - new
New issues that need assignment.
needs triage
Planning workflow - pending design/dev review.
labels
Nov 18, 2023
github-actions
bot
added
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
calcite-components
Issues specific to the @esri/calcite-components package.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
labels
Nov 18, 2023
4 tasks
driskull
changed the title
Floating elements are taking up visual space
Closed floating elements are taking up visual space
Nov 21, 2023
driskull
changed the title
Closed floating elements are taking up visual space
Closed floating elements are taking up visual space when being dragged
Nov 21, 2023
driskull
added a commit
that referenced
this issue
Nov 21, 2023
**Related Issue:** #8214 #7979 ## Summary - Update some component `open` handlers to call reposition before open and after open - Previously, they were just calling when open was set to true. - Update `floating-ui` utility - Handle device pixel ratio: https://floating-ui.com/docs/misc#subpixel-and-accelerated-positioning - Only set `top`, `left`, and `transform` when the component is open. - This makes it so that the positioned container is never going to "fly in" from anywhere. - Update sortable styles to hide any overflow on dragged elements.
driskull
added
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
and removed
0 - new
New issues that need assignment.
labels
Nov 22, 2023
Installed and assigned for verification. |
benelan
pushed a commit
that referenced
this issue
Nov 24, 2023
**Related Issue:** #8214 #7979 ## Summary - Update some component `open` handlers to call reposition before open and after open - Previously, they were just calling when open was set to true. - Update `floating-ui` utility - Handle device pixel ratio: https://floating-ui.com/docs/misc#subpixel-and-accelerated-positioning - Only set `top`, `left`, and `transform` when the component is open. - This makes it so that the positioned container is never going to "fly in" from anywhere. - Update sortable styles to hide any overflow on dragged elements.
benelan
pushed a commit
that referenced
this issue
Nov 24, 2023
**Related Issue:** #8214 #7979 ## Summary - Update some component `open` handlers to call reposition before open and after open - Previously, they were just calling when open was set to true. - Update `floating-ui` utility - Handle device pixel ratio: https://floating-ui.com/docs/misc#subpixel-and-accelerated-positioning - Only set `top`, `left`, and `transform` when the component is open. - This makes it so that the positioned container is never going to "fly in" from anywhere. - Update sortable styles to hide any overflow on dragged elements.
benelan
pushed a commit
that referenced
this issue
Nov 26, 2023
**Related Issue:** #8214 #7979 ## Summary - Update some component `open` handlers to call reposition before open and after open - Previously, they were just calling when open was set to true. - Update `floating-ui` utility - Handle device pixel ratio: https://floating-ui.com/docs/misc#subpixel-and-accelerated-positioning - Only set `top`, `left`, and `transform` when the component is open. - This makes it so that the positioned container is never going to "fly in" from anywhere. - Update sortable styles to hide any overflow on dragged elements.
geospatialem
added
4 - verified
Issues that have been released and confirmed resolved.
and removed
needs triage
Planning workflow - pending design/dev review.
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
labels
Nov 28, 2023
Verified in |
driskull
added a commit
that referenced
this issue
Dec 13, 2023
**Related Issue:** #7979 #8214 #8386 #8419 #5697 ## Summary - reverts #8001 - Keeps doc updates - reverts partially #8230 - Keeps drag classes that are setting `overflow:hidden` when a drag is occurring. - Keeps roundByDPR floating-ui fix. https://floating-ui.com/docs/misc#subpixel-and-accelerated-positioning - Hides overflow for `calcite-sortable--chosen` class - Only sets `top` and `left` on floating element once positioned. **This fixes native drag and drop issue**
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
Check existing issues
Actual Behavior
Floating elements are taking up visual space because they are set to
visibility:hidden
.Is there any way we can make them not introduce scrollbars in certain scenarios?
Expected Behavior
I would expect that any hidden menus are not taking up any visual space
Reproduction Sample
https://codepen.io/driskull/pen/Rwvxyaj
Reproduction Steps
Reproduction Version
1.10
Relevant Info
No response
Regression?
No response
Priority impact
p2 - want for current milestone
Impact
This is noticeable when a large menu is placed inside a list item and makes dragging experience pretty bad.
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: