diff options
| author | Conrad Groth | 2018-02-03 11:03:56 +0000 |
|---|---|---|
| committer | Niraj Modi | 2018-03-05 09:34:42 +0000 |
| commit | 37235cadc610ee19c2d6588cb15047d0aa3d89b5 (patch) | |
| tree | 39ca952099e31c7fc6e7f61b5688c183879106c4 | |
| parent | 060a5fc6f1e5b447585d4a78c24708020e0bb092 (diff) | |
| download | eclipse.platform.swt-37235cadc610ee19c2d6588cb15047d0aa3d89b5.tar.gz eclipse.platform.swt-37235cadc610ee19c2d6588cb15047d0aa3d89b5.tar.xz eclipse.platform.swt-37235cadc610ee19c2d6588cb15047d0aa3d89b5.zip | |
Bug 527937 - [HiDPI][Win32] Checkbox/Radiobutton: focus-rect cut off
Change-Id: I6a7ce52c9064c899e5329316145f94c38a6c5970
Signed-off-by: Conrad Groth <info@conrad-groth.de>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java | 2 |
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 57a8055abd..9b9db7148a 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 @@ -1614,7 +1614,7 @@ LRESULT wmNotifyChild (NMHDR hdr, long /*int*/ wParam, long /*int*/ lParam) { RECT focusRect = new RECT (); if (isRadioOrCheck()) { if (text.length() > 0) { - OS.SetRect(focusRect, textRect.left-1, textRect.top, Math.min(nmcd.right, textRect.right+1), textRect.bottom+1); + OS.SetRect(focusRect, textRect.left-1, textRect.top, Math.min(nmcd.right, textRect.right+1), Math.min(nmcd.bottom, textRect.bottom+1)); } else { /* * With custom foreground, draw focus rectangle for CheckBox |
