mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 15:12:28 +00:00
Fixed it so computedHeight is correctly computed
This commit is contained in:
parent
aebbda5000
commit
ac82f1774c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user