Closed
Bug 274703
Opened 20 years ago
Closed 20 years ago
<dialog>s sometimes have a too small height when opened
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: Stefan.Borggraefe, Assigned: jag+mozilla)
References
Details
Attachments
(1 file)
1.02 KB,
patch
|
jst
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Follow-up bug to bug 274481.
Under certain conditions <dialog>s have a too small height when opened. This
caused bug 274481. The bug doesn't happen when I comment out the for-loop that
shows/hides buttons according to the button configuration in dialog.xml:
for (dlgtype in buttons)
buttons[dlgtype].hidden = !shown[dlgtype];
Also this bug doesn't happen when very large fonts are used (see bug 274481
comment 11 and comment 12).
This bug happens with current trunk builds of FF and Seamonkey and was reported
with Windows and Linux Gtk2.
Comment 1•20 years ago
|
||
I don't claim that this patch is the correct way to fix the bug, but I
discovered that if I query document.documentElement.height it passes
Flush_Layout and subsequently the dialog is correctly sized.
Note that you need to back out attachment 168713 [details] [diff] [review] to test this patch.
Attachment #168963 -
Flags: superreview?(dbaron)
Attachment #168963 -
Flags: review?(jst)
Comment 2•20 years ago
|
||
Comment on attachment 168963 [details] [diff] [review]
Possible patch
r=jst
Attachment #168963 -
Flags: review?(jst) → review+
Comment 3•20 years ago
|
||
Comment on attachment 168963 [details] [diff] [review]
Possible patch
Add a comment that this is needed because ResizeReflow won't change some sizes
that pending StyleChange reflows would...
Attachment #168963 -
Flags: superreview?(dbaron) → superreview+
Comment 4•20 years ago
|
||
Stefan, please back out your workarounds (rs=me) before closing this bug.
Reporter | ||
Comment 5•20 years ago
|
||
(In reply to comment #4)
> Stefan, please back out your workarounds (rs=me) before closing this bug.
[x] done
I also checked in the patch for bug 276894.
Marking FIXED.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•