diff options
| author | Sravan Kumar Lakkimsetti | 2014-09-08 17:49:29 +0000 |
|---|---|---|
| committer | Markus Keller | 2014-09-10 14:20:56 +0000 |
| commit | 8ca3e0288320ea5a604a1d351fe0b9cda6bce09f (patch) | |
| tree | e666d1a885cf8af9149415ee8635380220fef3a0 | |
| parent | 44ec05ae8c7adbcb30d68fb5c03d0e2370de945b (diff) | |
| download | eclipse.platform.swt-8ca3e0288320ea5a604a1d351fe0b9cda6bce09f.tar.gz eclipse.platform.swt-8ca3e0288320ea5a604a1d351fe0b9cda6bce09f.tar.xz eclipse.platform.swt-8ca3e0288320ea5a604a1d351fe0b9cda6bce09f.zip | |
Bug 441148 - [GTK3] Shell#setSize() in RTL shell sets x-coordinate of
contained control to invalid value
Change-Id: Ic24cfdd14cb88105b05359522bf1c6e07bc30daa
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index d375852832..6381aa8acc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -945,6 +945,10 @@ void forceResize () { } void forceResize (int width, int height) { + int clientWidth = 0; + if (OS.GTK3) { + if ((style & SWT.MIRRORED) != 0) clientWidth = getClientWidth (); + } GtkRequisition requisition = new GtkRequisition (); gtk_widget_get_preferred_size (vboxHandle, requisition); GtkAllocation allocation = new GtkAllocation (); @@ -954,6 +958,9 @@ void forceResize (int width, int height) { allocation.width = width; allocation.height = height; OS.gtk_widget_size_allocate (vboxHandle, allocation); + if (OS.GTK3) { + if ((style & SWT.MIRRORED) != 0) moveChildren (clientWidth); + } } /** |
