mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 08:40:56 +00:00
Make vertical resizing of framesets work in standards mode. Bug 376981, r+sr=dbaron
This commit is contained in:
parent
d073b708b8
commit
f1ab736796
@ -571,6 +571,13 @@ CanvasFrame::Reflow(nsPresContext* aPresContext,
|
|||||||
nsSize(aReflowState.availableWidth,
|
nsSize(aReflowState.availableWidth,
|
||||||
NS_UNCONSTRAINEDSIZE));
|
NS_UNCONSTRAINEDSIZE));
|
||||||
|
|
||||||
|
if (aReflowState.mFlags.mVResize &&
|
||||||
|
(kidFrame->GetStateBits() & NS_FRAME_CONTAINS_RELATIVE_HEIGHT)) {
|
||||||
|
// Tell our kid it's being vertically resized too. Bit of a
|
||||||
|
// hack for framesets.
|
||||||
|
kidReflowState.mFlags.mVResize = PR_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
// Reflow the frame
|
// Reflow the frame
|
||||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
||||||
kidReflowState.mComputedMargin.left, kidReflowState.mComputedMargin.top,
|
kidReflowState.mComputedMargin.left, kidReflowState.mComputedMargin.top,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user