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

Fix vertical positioning of popovers #674

Merged
merged 14 commits into from
Nov 30, 2024

Conversation

Jaifroid
Copy link
Member

Fixes #672.

@Jaifroid Jaifroid added this to the Release 3.5.0 milestone Nov 24, 2024
@Jaifroid Jaifroid self-assigned this Nov 24, 2024
@Jaifroid Jaifroid force-pushed the Fix-vertical-positioning-of-popovers branch from 0858b06 to 51d36e4 Compare November 27, 2024 20:23
@Jaifroid
Copy link
Member Author

While now working well, seems to have nerfed some aspect of dark mode....

@Jaifroid
Copy link
Member Author

Positioning is broken when tabbing into an element. Seems we don't get proper dimensions from the offset values. Additionally, when hovering over a link inside a positioned div (e.g. navbox) the positioning goes haywire.

@Jaifroid Jaifroid force-pushed the Fix-vertical-positioning-of-popovers branch from ad0b188 to aec69c0 Compare November 29, 2024 13:20
@Jaifroid
Copy link
Member Author

Used a better way to detect the change with getBoundingClientRect(), but needs testing on Safari, UWP and Android.

@Jaifroid Jaifroid linked an issue Nov 30, 2024 that may be closed by this pull request
@Jaifroid
Copy link
Member Author

Tested on all common browsers, and also on Edge Legacy. Also Safari and iOS.

As a separate issue, when a page is zoomed excessively, the popovers are rendered too large to fit on a phone screen without horizontal scrolling. But this is minor. It could be dealt with by scaling the size.

@Jaifroid Jaifroid merged commit 0ff1d4a into main Nov 30, 2024
1 check passed
@Jaifroid Jaifroid deleted the Fix-vertical-positioning-of-popovers branch November 30, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant