-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Plugin modal window height #3465
Comments
I have the same experience. $(window).height() gives size of the whole document. It makes the modal window unusably large with all the relevant content outside of the screen. |
It depends of html layout markup. Setting css properties width and height to 100% for html element fix problem for me. |
I had this issue a few weeks ago and posted to the mailing list before discovering the solution. It's an issue with jQuery and the document type... Some investigation uncovered that $(window).height() was returning the document height instead of the window height. This happens when there's no doctype declared on the page. A quick <!doctype html> and it was fixed! |
also related to: #2523 this is correct, a doctype NEEDS to be declared. |
jQuery's $(window).height() is sensitive to doctype. Try <!doctype html> Don’t use Quirks mode! jQuery has never supported Quirks mode and we do not perform any testing in Quirks. This can affect values like $("window").height(), and the jQuery 1.8 Quirks mode results did change in order to support some modern browser features. The majority of problem cases we’ve seen are from developers that wanted to be in Standards mode but had an invalid doctype or extraneous markup before their tag. When in doubt, use the simple and short <!doctype html>. |
@yakky can be closed #wontfix on my side |
Thanks! |
see: django-cms/django-cms#3465 Signed-off-by: rscnt <rascnt@gmail.com>
I added to my template and it worked for a moment but then it didn't. |
The height of the plugins modal window is not calculated correctly into the cms.modal.js.
I need to replace this line
with this
https://github.com/divio/django-cms/blob/develop/cms/static/cms/js/modules/cms.modal.js#L131
The text was updated successfully, but these errors were encountered: