Bug 618420 - increase the size of the lower border resizer area on windows. r=felipe, a=final.
authorJim Mathies <jmathies@mozilla.com>
Fri, 21 Jan 2011 15:22:49 -0600
changeset 61115 16bd82195df8b677ee813a6dc02690a8883fdc5d
parent 61114 02d2bfb6af2d1824f54fdb1ce0406ca280de2689
child 61116 84f88de431f83fc941b0cfc5ddc7640477f46c4d
child 61121 bb9089ae2322a6c0663c95e3067306c2614f5eac
child 61212 737a29c9ba554602cc923f702010d92b00c5ef5a
push idunknown
push userunknown
push dateunknown
reviewersfelipe, final
bugs618420
milestone2.0b10pre
Bug 618420 - increase the size of the lower border resizer area on windows. r=felipe, a=final.
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -5830,19 +5830,21 @@ nsWindow::ClientMarginHitTestPoint(PRInt
   PRBool right  = PR_FALSE;
 
   if (my >= winRect.top && my <
       (winRect.top + mVertResizeMargin + (mCaptionHeight - mNonClientOffset.top)))
     top = PR_TRUE;
   else if (my < winRect.bottom && my >= (winRect.bottom - mVertResizeMargin))
     bottom = PR_TRUE;
 
-  if (mx >= winRect.left && mx < (winRect.left + mHorResizeMargin))
+  if (mx >= winRect.left && mx < (winRect.left +
+                                  (bottom ? (2*mHorResizeMargin) : mHorResizeMargin)))
     left = PR_TRUE;
-  else if (mx < winRect.right && mx >= (winRect.right - mHorResizeMargin))
+  else if (mx < winRect.right && mx >= (winRect.right -
+                                        (bottom ? (2*mHorResizeMargin) : mHorResizeMargin)))
     right = PR_TRUE;
 
   if (top) {
     testResult = HTTOP;
     if (left)
       testResult = HTTOPLEFT;
     else if (right)
       testResult = HTTOPRIGHT;