Bug 72152. Be sure to update the pres context's visible area after doing a resize reflow. r=dbaron, sr=attinasi

This commit is contained in:
waterson%netscape.com 2001-09-11 22:21:21 +00:00
parent e73674359b
commit 1688e3949f
2 changed files with 4 additions and 0 deletions

View File

@ -2801,6 +2801,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
nsContainerFrame::PositionFrameView(mPresContext, rootFrame);
rootFrame->Reflow(mPresContext, desiredSize, reflowState, status);
rootFrame->SizeTo(mPresContext, desiredSize.width, desiredSize.height);
mPresContext->SetVisibleArea(nsRect(0,0,desiredSize.width,desiredSize.height));
nsIView* view;
rootFrame->GetView(mPresContext, &view);
if (view) {

View File

@ -2801,6 +2801,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
nsContainerFrame::PositionFrameView(mPresContext, rootFrame);
rootFrame->Reflow(mPresContext, desiredSize, reflowState, status);
rootFrame->SizeTo(mPresContext, desiredSize.width, desiredSize.height);
mPresContext->SetVisibleArea(nsRect(0,0,desiredSize.width,desiredSize.height));
nsIView* view;
rootFrame->GetView(mPresContext, &view);
if (view) {