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

Bootstrap modals scrolling to top on backend pages #5720

Open
AndiLeni opened this issue May 28, 2023 · 1 comment
Open

Bootstrap modals scrolling to top on backend pages #5720

AndiLeni opened this issue May 28, 2023 · 1 comment

Comments

@AndiLeni
Copy link
Contributor

Description / Beschreibung
Fügt man ein Bootstrap Modal ein, springt die Seite beim Öffnen des Modals nach oben und beim Schließen des Modals wieder nach unten.
Das Problem liegt an der .modal-open Klasse, welche von Bootstrap zum body Tag hinzugefügt wird.
Dadurch wird overflow: hidden gesetzt.

Affected versions / Verwendete Versionen
In 5.14.2 ist dieses Verhalten zu beobachten.

Für eine einzelne Seite eines Addons habe ich das Problem mit folgender CSS Regel gelöst:

#rex-page-statistics-stats.modal-open {
    overflow: visible;
}
428.mp4
@DanielWeitenauer
Copy link
Contributor

DanielWeitenauer commented May 28, 2023

Das liegt daran, dass der body den Stil height:100%; hat. Ohne den Stil springt die Seite nicht.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants