b=19374. Restored some code I unintentionaly removed in previous checkin.

Now after Reflow() of child frame "kidRect.width" and "kidRect.height" are
updated
This commit is contained in:
troy%netscape.com 1999-11-19 22:04:01 +00:00
Родитель 39169f6482
Коммит 0e0d40fa91
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -524,6 +524,8 @@ ViewportFrame::Reflow(nsIPresContext& aPresContext,
kidReflowState.mComputedHeight = aReflowState.availableHeight;
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
0, 0, 0, aStatus);
kidRect.width = kidDesiredSize.width;
kidRect.height = kidDesiredSize.height;
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, 0, 0, 0);
}

Просмотреть файл

@ -524,6 +524,8 @@ ViewportFrame::Reflow(nsIPresContext& aPresContext,
kidReflowState.mComputedHeight = aReflowState.availableHeight;
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
0, 0, 0, aStatus);
kidRect.width = kidDesiredSize.width;
kidRect.height = kidDesiredSize.height;
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, 0, 0, 0);
}