Fixed it so computedHeight is correctly computed

This commit is contained in:
troy%netscape.com 1999-01-19 05:59:24 +00:00
parent aebbda5000
commit ac82f1774c

View File

@ -333,11 +333,10 @@ nsScrollFrame::Reflow(nsIPresContext& aPresContext,
kidReflowSize);
nsHTMLReflowMetrics kidDesiredSize(aDesiredSize.maxElementSize);
// Recompute the computed width/height based on the scroll area size
// Recompute the computed width based on the scroll area size
kidReflowState.computedWidth = scrollAreaSize.width - padding.left -
padding.right;
kidReflowState.computedHeight = scrollAreaSize.height - padding.top -
padding.bottom;
kidReflowState.computedHeight = NS_AUTOHEIGHT;
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
aStatus);