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 id18229
push userjmathies@mozilla.com
push dateFri, 21 Jan 2011 21:23:10 +0000
treeherdermozilla-central@16bd82195df8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe, final
bugs618420
milestone2.0b10pre
first release with
nightly linux32
16bd82195df8 / 4.0b10pre / 20110121153108 / files
nightly linux64
16bd82195df8 / 4.0b10pre / 20110121153046 / files
nightly mac
16bd82195df8 / 4.0b10pre / 20110121153230 / files
nightly win32
16bd82195df8 / 4.0b10pre / 20110121153543 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
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;