зеркало из https://github.com/mozilla/pjs.git
Make vertical resizing of framesets work in standards mode. Bug 376981, r+sr=dbaron
This commit is contained in:
Родитель
764dedac5e
Коммит
b952e27f49
|
@ -571,6 +571,13 @@ CanvasFrame::Reflow(nsPresContext* aPresContext,
|
|||
nsSize(aReflowState.availableWidth,
|
||||
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
|
||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
||||
kidReflowState.mComputedMargin.left, kidReflowState.mComputedMargin.top,
|
||||
|
|
Загрузка…
Ссылка в новой задаче