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 CSS kludge that breaks JavaScript modal boxes #2345

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

bemoody
Copy link
Collaborator

@bemoody bemoody commented Feb 6, 2025

An old kludge by Lucas Bulgarelli (to make the splash-screen fill the browser window) currently interferes with CKEditor modal boxes and will interfere with TinyMCE modal boxes.

For example, open one of your "Project Content" pages, scroll to the bottom and in the CKEditor toolbar, click the "equation" button. The equation editor modal box pops up, as expected - but in the background, "behind" the modal box, the page has scrolled back to the top.

The same problem and worse problems occur with TinyMCE.

I don't know why this is, and don't really care to debug it further. It's likely to be browser-dependent.

But I think the best thing is not to mess around with the dimensions and overflow behavior of the html and body elements. On current browsers, we can use 100vh to get Lucas's desired effect, and it doesn't really hurt anything if the effect doesn't work on outdated browsers.

Do this instead of changing the dimensions and overflow behavior of
the html and body elements, which interferes with external JavaScript
packages such as CKEditor and TinyMCE.
@bemoody
Copy link
Collaborator Author

bemoody commented Feb 6, 2025

See also pull #2324.

If you're trying to test this, remember that you need to run manage.py compilestatic.

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.

1 participant