Fix for reflow problem in XUL dialogs (bug 255270, smoketest blocker). Patch by bzbarsky, r=neil, sr=dbaron. (I'm conservatively just removing the hack in nsHlperAppDlg by restoring it to its previous state).

git-svn-id: svn://10.0.0.236/trunk@160728 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com 2004-08-13 18:25:33 +00:00
parent a3e3af1a8d
commit 989908590d
2 changed files with 7 additions and 5 deletions

View File

@ -73,14 +73,11 @@
<radiogroup id="mode" oncommand="dialog.toggleChoice()" align="stretch">
<hbox>
<!-- XXX Wallpaper over incremental reflow bug in XUL by giving
ourselves more space... In fact, all this business
with the hboxes is wallpaper. -->
<radio id="useSystemDefault"
flex="7"
flex="1"
label="&useSystemDefault.noDesc.label;"
accesskey="&useSystemDefault.accesskey;"/>
<spacer flex="3"/>
<spacer flex="1"/>
</hbox>
<hbox align="center">
<radio id="openUsing"

View File

@ -733,6 +733,11 @@ nsBoxToBlockAdaptor::Reflow(nsBoxLayoutState& aState,
redrawAfterReflow,
aMoveFrame);
// If the NS_REFLOW_CALC_MAX_WIDTH flag is set on the nsHTMLReflowMetrics,
// then we need to do a reflow so that aDesiredSize.mMaximumWidth will be set
// correctly.
needsReflow = needsReflow || (aDesiredSize.mFlags & NS_REFLOW_CALC_MAX_WIDTH);
if (redrawNow)
Redraw(aState);