Open Bug 717858 Opened 12 years ago Updated 1 year ago

Using a XUL box with a max-height box in a dialog results in the XUL box having a minimum height

Categories

(Core :: XUL, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: jason.barnabe, Unassigned)

Details

Attachments

(1 file)

859 bytes, application/vnd.mozilla.xul+xml
Details
Attached file testcase
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.
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.