Open Bug 717858 Opened 11 years ago Updated 9 years ago
Using a XUL box with a max-height box in a dialog results in the XUL box having a minimum height
In a <dialog>, I have: -A box with flex="1" -A box with no flex, but with a max-height and overflow: auto. This box can have varying amount of content inside it. My intention is that the second box is as small as possible to fit its content (and thus the first box is as big as possible given the size of the dialog), and that it will not grow taller than my specified maximum size, showing a scrollbar if needed. When the dialog is taller than a certain size, everything's fine. Below a certain size, the first box refuses to get any smaller and the dialog's action buttons are cut off. Oddly, this does not happen inside a <window>. See attached testcase. Resize your window to make it shorter. Expected: red area shrinks all the way down to nothing as you make the window shorter Actual: red area shrinks for a while, but then refuses to get smaller, causing the dialog's buttons to be cut off.
Bug 717858 STR was 1st mentioned here: http://forum.userstyles.org/discussion/29618/stylish-bug-many-errors-in-style-unusable-ui-partially-fixed#Item_3 and also I mentioned it here: http://forum.userstyles.org/discussion/30039/stylish-for-firefox-1.2.6b1#Item_10
Summary: Using a flex box with a max-height box in a dialog results in the flex box having a minimum height → Using a XUL box with a max-height box in a dialog results in the XUL box having a minimum height
You need to log in before you can comment on or make changes to this bug.