Fixed a crash when resizing the print preview window

git-svn-id: svn://10.0.0.236/trunk@16029 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-12-09 04:26:42 +00:00
parent 7b2c6f451a
commit c9e7bd13c8
4 changed files with 28 additions and 50 deletions

View File

@@ -1064,15 +1064,9 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext& aPresContext,
}
}
/* if we're incomplete, take up all the remaining height so we don't waste time
* trying to lay out in a slot that we know isn't tall enough to fit our minimum.
* otherwise, we're as tall as our kids want us to be */
if (NS_FRAME_IS_NOT_COMPLETE(aStatus))
aDesiredSize.height = aReflowState.maxSize.height;
else
aDesiredSize.height = state.y;
// Return our desired rect
aDesiredSize.width = state.innerTableMaxSize.width;
aDesiredSize.height = state.y;
aDesiredSize.ascent = aDesiredSize.height;
aDesiredSize.descent = 0;