Added code to fill in the maxElementSize in the reflow metrics properly for inner frames (bug #6726)

This commit is contained in:
kipp%netscape.com 1999-07-02 21:05:20 +00:00
parent 92763a1dad
commit b75aab62bc
2 changed files with 8 additions and 0 deletions

View File

@ -965,6 +965,10 @@ nsHTMLFrameInnerFrame::Reflow(nsIPresContext& aPresContext,
aDesiredSize.height = aReflowState.availableHeight;
aDesiredSize.ascent = aDesiredSize.height;
aDesiredSize.descent = 0;
if (nsnull != aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = aDesiredSize.width;
aDesiredSize.maxElementSize->height = aDesiredSize.height;
}
aStatus = NS_FRAME_COMPLETE;

View File

@ -965,6 +965,10 @@ nsHTMLFrameInnerFrame::Reflow(nsIPresContext& aPresContext,
aDesiredSize.height = aReflowState.availableHeight;
aDesiredSize.ascent = aDesiredSize.height;
aDesiredSize.descent = 0;
if (nsnull != aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = aDesiredSize.width;
aDesiredSize.maxElementSize->height = aDesiredSize.height;
}
aStatus = NS_FRAME_COMPLETE;