TEXT: Fix bug that invisible text on Linux
authorHyunJong Park <paulhj.park@samsung.com>
Tue, 21 Jun 2016 00:58:41 +0000 (09:58 +0900)
committerSangho Park <sangho.p@samsung.com>
Tue, 21 Jun 2016 06:45:41 +0000 (15:45 +0900)
Do not use the SWT.CENTER style when creating a composite.
Because the SWT.CENTER has the same value as SWT.EMBEDDED
on some operating systems (GTK, Motif).

Change-Id: I4541bc91188fbbb929e0e88513a0a9f97d6f96b9
Signed-off-by: HyunJong Park <paulhj.park@samsung.com>
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TizenText.java

index ef33906..8603039 100644 (file)
@@ -88,6 +88,7 @@ public class TizenText extends Canvas {
         style &= ~SWT.BORDER;
         style &= ~SWT.V_SCROLL;
         style &= ~SWT.H_SCROLL;
+        style &= ~SWT.CENTER;
         return style;
     }