Bug 494301 - Scrollbar not resized on pill button click. r=roc
authorMarkus Stange <mstange@themasta.com>
Mon, 05 Oct 2009 15:14:38 +1300
changeset 33453 1fa6860af3d62bab9bc4842222fa059bcbac2105
parent 33452 61376f9af6aa146a27757555edf8fc267326ce48
child 33454 08280b7f6982554b9bebc404472cc5d67fb4eefc
push idunknown
push userunknown
push dateunknown
reviewersroc
bugs494301
milestone1.9.3a1pre
Bug 494301 - Scrollbar not resized on pill button click. r=roc
layout/generic/nsGfxScrollFrame.cpp
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -2550,17 +2550,17 @@ static void AdjustScrollbarRect(nsIView*
     return;
 
   nsRect resizerRect =
       nsRect(aPresContext->DevPixelsToAppUnits(widgetRect.x) - offset.x,
              aPresContext->DevPixelsToAppUnits(widgetRect.y) - offset.y,
              aPresContext->DevPixelsToAppUnits(widgetRect.width),
              aPresContext->DevPixelsToAppUnits(widgetRect.height));
 
-  if (!aRect.Intersects(resizerRect))
+  if (!resizerRect.Contains(aRect.BottomRight() - nsPoint(1, 1)))
     return;
 
   if (aVertical)
     aRect.height = NS_MAX(0, resizerRect.y - aRect.y);
   else
     aRect.width = NS_MAX(0, resizerRect.x - aRect.x);
 }