From 697d10d51272879039df04d3865b7ecfae498fe1 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 29 Oct 1998 19:47:19 +0000 Subject: [PATCH] Changed Refresh() to use the dimensions of the widget associated with theview being repainted, rather than the dimensions of the root widget --- view/src/nsViewManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index 957bc901b1f4..63720b402b6a 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -293,7 +293,11 @@ void nsViewManager :: Refresh(nsIView *aView, nsIRenderingContext *aContext, nsI if (aUpdateFlags & NS_VMREFRESH_DOUBLE_BUFFER) { - mRootWindow->GetBounds(wrect); + nsIWidget* widget; + aView->GetWidget(widget); + widget->GetBounds(wrect); + wrect.x = wrect.y = 0; + NS_RELEASE(widget); ds = GetDrawingSurface(*localcx, wrect); localcx->SelectOffScreenDrawingSurface(ds); }