There is no max-height set on the UI dialog content div (having class .ui-dialog-content), so a long list of properties (or even just a property close to the bottom of the list) will overflow past the bottom of my screen. No scroll bar is shown.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | fast_token_browser-height-issues-3034835-4.patch | 2.65 KB | solideogloria |
Comments
Comment #2
solideogloria commentedComment #3
solideogloria commentedThis issue only happens if the popup dialog has not been resized with the mouse yet, because the height attribute will still be set to
autoin that case.Comment #4
solideogloria commentedI changed the JS to set the height of the container after expanding a row to what it was before expansion.
Comment #5
solideogloria commentedComment #6
npacker commentedI don't see any element labelled with that id.
Comment #7
solideogloria commentedIt's a dynamic ID. See the attached patch for the fix, since I changed how the solution works anyway.
Comment #8
solideogloria commentedIt's the popup when you click to show the list of all available tokens
Comment #9
solideogloria commentedComment #10
npacker commentedStrange. On my test site the list gets large very quickly and a scrollbar is added to the overall page as needed. Can you give any more details of your setup?
Comment #11
solideogloria commentedCould it maybe be because my initial list does not require a scrollbar? There aren't enough rows to reach the bottom until I expand a row.
Comment #12
solideogloria commentedOh, I see what you mean. Dialogs should not affect the scrolling of my site. My site has
overflow: hidden;, so nothing from the dialog will add to the height. I think the dialog itself needs to have its own scrollbar (especially since this is its behavior if you have already resized the dialog at all prior to expanding rows).Comment #13
npacker commentedThat sounds like an issue specific to your theme that would be better addressed there.
Comment #14
solideogloria commentedYour dialog adds a scrollbar if it has been resized, but doesn't if not. That sounds like a problem with the dialog. Causing content to go off the screen and requiring users to handle it themselves doesn't sound like proper behavior, especially since popup dialogs should always fit on the screen.
I even included a patch that fixes the issue.
Comment #15
solideogloria commentedFeel free to find a way that doesn't require setting the height every time a row is expanded, perhaps by making the dialog resize itself once after it is created, or setting an initial height or something, but the dialog definitely shouldn't be growing every expansion of a row.
Comment #16
npacker commentedThe behavior of the dialog is controlled by the jQuery UI Dialog widget, and is correct. The scrollbar is only added if you constrain the size of the dialog by resizing. Setting
overflow: hiddenon your site is a non-standard practice and a specific use case. As such, I do not want to add addtional code to support it. I'm also reluctant to add additional code that controls the behavior of the dialog seperate from the baked-in jQuery UI behavior.Comment #17
solideogloria commentedMmk. There is probably a nice CSS solution if you wanted to set a max-height or something. Otherwise, I'll just do that in my theme. I don't think it makes sense to have a dialog grow past the screen or change the height of my site by overflowing past the bottom of a page.
Comment #18
npacker commentedI'd rather let jQuery UI handle the dialog as much as possible. It sounds like you have a unique situation where your site is height-constrained. I don't see this as an issue that the vast majority of users would encounter.