mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +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);
|
kidReflowSize);
|
||||||
nsHTMLReflowMetrics kidDesiredSize(aDesiredSize.maxElementSize);
|
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 -
|
kidReflowState.computedWidth = scrollAreaSize.width - padding.left -
|
||||||
padding.right;
|
padding.right;
|
||||||
kidReflowState.computedHeight = scrollAreaSize.height - padding.top -
|
kidReflowState.computedHeight = NS_AUTOHEIGHT;
|
||||||
padding.bottom;
|
|
||||||
|
|
||||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
||||||
aStatus);
|
aStatus);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user