Open Bug 473525 Opened 16 years ago Updated 2 years ago

XUL dialog size miscalculated for scrollable panel in container with min-height

Categories

(Core :: XUL, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: jwkbugzilla, Unassigned)

References

Details

Attachments

(1 file)

1.00 KB, application/vnd.mozilla.xul+xml
Details
Attached file Testcase
When a XUL dialog is opened via window.openDialog(), its size is usually calculated automatically. However, this calculation fails when the dialog contains a vertically scrollable panel in a container that has CSS min-height property set (see testcase). Apparently, wrapable <description> elements are also required for this bug to appear.

To reproduce, download the testcase to a chrome location and run this JavaScript code:

  openDialog("chrome://.../dialog_size_miscalculation.xul");

Expected result: Dialog opens without scrolling, text in <description> elements isn't wrapped. This is also the observed result if you remove min-height CSS property (that isn't supposed to influence the layout in this case).

Actual result: Dialog opens too small, both horizontally and vertically. Lack of horizontal space results in <description> elements being wrapped. This results in a significant lack of vertical space, resulting in a scroll bar. Reproduced in Firefox 3.0.5 and in a current Minefield build (20090113) on Windows XP.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: