Skip to content
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

[4.x] Customize Columns Modal Height Thrashing #9538

Merged
merged 6 commits into from
Feb 20, 2024
Merged

[4.x] Customize Columns Modal Height Thrashing #9538

merged 6 commits into from
Feb 20, 2024

Conversation

JohnathonKoster
Copy link
Contributor

@JohnathonKoster JohnathonKoster commented Feb 17, 2024

This PR fixes #9473 by constraining the modal heights to 100% of the view height minus 1 pixel. This issue could also happen with the the Keyboard Shortcuts and Session Expiry modal windows if you really tried (I also added overflow-y-auto to the keyboards shortcut window so you could scroll and see content if you want a really short window).

The root cause seems to be inside vue-js-modal, where it gets confused when height is set to auto and the calculated height of the modal gets very close to the window's inner height on the problematic zoom levels. Constraining the height to 100vh largely fixes the issue, but a noticeable shimmer would persist at the very bottom of the modal window. Adding the - 1px got rid of this shimmering.

The easiest way I found to reproduce this bug (in all browsers I tested in) was to get the Customize Columns lists to scroll and adjust the zoom level to 90% (110% also works, but weirdly not all of them would trigger this).

Note: it's not important what causes overflow inside the modal, as long as it causes the height to be re-calculated.

height_thrashing.mp4

Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to fix it for me. I was able to replicate the issue on macOS by reducing my zoom to 90%.

@jasonvarga jasonvarga merged commit 20b8380 into statamic:4.x Feb 20, 2024
17 checks passed
@jasonvarga jasonvarga deleted the bugfix-9473--customize-columns-infinite-height-adjustments branch February 20, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customize columns glitchy in Windows
3 participants