Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandr Miloslavskiy2021-12-26 22:48:06 +0000
committerNiraj Modi2022-01-03 10:45:46 +0000
commitd38e7cd2f31644e817710d071e2aa377a8701202 (patch)
tree368619225fd58be1b2ed5c9a05c1bef2632c83b2
parentb9f490267b67e0add3841f848d649c9168fc9b2e (diff)
downloadeclipse.platform.swt-d38e7cd2f31644e817710d071e2aa377a8701202.tar.gz
eclipse.platform.swt-d38e7cd2f31644e817710d071e2aa377a8701202.tar.xz
eclipse.platform.swt-d38e7cd2f31644e817710d071e2aa377a8701202.zip
Bug 577042 - Button: Fix focus rect location
Change-Id: I406ce253907b76e85370d1ec912e65ff1e7c6401 Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189154 Tested-by: Niraj Modi <niraj.modi@in.ibm.com> Reviewed-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index a98fc70547..2711a055db 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -1406,7 +1406,7 @@ LRESULT wmNotifyChild (NMHDR hdr, long wParam, long lParam) {
OS.SetRect (focusRect, nmcd.left+1+radioOrCheckTextPadding, nmcd.top, nmcd.right-2, nmcd.bottom-1);
}
} else {
- OS.SetRect (focusRect, nmcd.left+2, nmcd.top+3, nmcd.right-2, nmcd.bottom-3);
+ OS.SetRect (focusRect, nmcd.left+4, nmcd.top+4, nmcd.right-4, nmcd.bottom-4);
}
OS.DrawFocusRect(nmcd.hdc, focusRect);
}

Back to the top