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

NEW
Unassigned

Status

()

7 years ago
5 years ago

People

(Reporter: jason.barnabe, Unassigned)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

859 bytes, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

7 years ago
Created attachment 588314 [details]
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
You need to log in before you can comment on or make changes to this bug.