Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-02-16 09:27:10 +0000
committerAlexander Kurtakov2018-02-16 09:38:54 +0000
commit158c894de7520ed72b3f64017da7ce0ea24ead54 (patch)
tree1d42f2ad211f52c24eaec29deab7da10c164787a
parentad03963ee5482b2b6a17743ae15712f776117547 (diff)
downloadeclipse.platform.swt-158c894de7520ed72b3f64017da7ce0ea24ead54.tar.gz
eclipse.platform.swt-158c894de7520ed72b3f64017da7ce0ea24ead54.tar.xz
eclipse.platform.swt-158c894de7520ed72b3f64017da7ce0ea24ead54.zip
Bug 530950 - [Gtk3][DateTime] Visual glitch, SWT.DROP_DOWN button is
outside the editbox. Really use the padding when calculating button Change-Id: Ia1749032df0807f78cbb84b15937bb002df18981 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
index e696284dfb..1f16de51d0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
@@ -1718,7 +1718,7 @@ private void setDropDownButtonSize () {
int newHeight = dateEntryHeight;
//Move button a little closer to entry field, by amount of padding.
- int newXpos = parentWidth - buttonSize.x;
+ int newXpos = parentWidth - buttonSize.x - getGtkBorderPadding().left - getGtkBorderPadding().right;
int newYPos = parentHeight/2 - dateEntryHeight/2;
down.setBoundsInPixels (newXpos, newYPos, buttonSize.x, newHeight);

Back to the top