From ef058012479b8b60d535b3bfbfaaaa9c71066047 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Fri, 17 Jan 2003 00:14:07 +0000 Subject: [PATCH] Bug 187503. Fix regression by making nsScrollBoxFrame sync up view properties after the view is resized. r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@136458 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp b/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp index 8751c4dfc92..f7e2fd2062e 100644 --- a/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp +++ b/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp @@ -392,14 +392,10 @@ nsScrollBoxFrame::DoLayout(nsBoxLayoutState& aState) nsIFrame* frame; kid->GetFrame(&frame); frame->GetView(presContext, &view); - nsCOMPtr vm; - view->GetViewManager(*getter_AddRefs(vm)); + nsRect r(0, 0, childRect.width, childRect.height); - nsRect bnds; - view->GetBounds(bnds); - if (bnds != r) { - vm->ResizeView(view, r); - } + nsContainerFrame::SyncFrameViewAfterReflow(presContext, frame, view, &r, + NS_FRAME_NO_MOVE_VIEW); } nsIScrollableView* scrollingView;