Skip to content

Fix problem with incorrectly placed modals #21461

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

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Fix problem with incorrectly placed modals #21461

merged 1 commit into from
Nov 8, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 31, 2023

Description:

In some weird cases modals might currently be placed incorrect, causing them to get partially hidden when being placed with a negative top position.

The positioning is handled by jQuery UI. It seems like for some reason the collision detection of jquery doesn't work properly resulting in a negative top value.

I tried debugging that for a while, but decided not to waste more time. The simple fix in this PR should fix the problem by simply unsetting negative top values to ensure the element is correctly visible.

fixes DEV-17273

Review

@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review labels Oct 31, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Oct 31, 2023
@sgiehl sgiehl requested a review from a team October 31, 2023 10:48
@michalkleiner michalkleiner added the c: Design / UI For issues that impact Matomo's user interface or the design overall. label Nov 1, 2023
@sgiehl sgiehl merged commit ca24d69 into 5.x-dev Nov 8, 2023
@sgiehl sgiehl deleted the dev-17273 branch November 8, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review
Development

Successfully merging this pull request may close these issues.

3 participants