Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Matveev2019-03-21 14:49:11 -0400
committerEric Williams2019-03-22 12:20:27 -0400
commit93f6c162a5d2e9f2f7f23c5493e7cad8ad9329d3 (patch)
tree27f9782e954222928e71f852ce068242275127fc
parenta633489301b8707b97afc2334d35c36fd6fccfe8 (diff)
downloadeclipse.platform.swt-93f6c162a5d2e9f2f7f23c5493e7cad8ad9329d3.tar.gz
eclipse.platform.swt-93f6c162a5d2e9f2f7f23c5493e7cad8ad9329d3.tar.xz
eclipse.platform.swt-93f6c162a5d2e9f2f7f23c5493e7cad8ad9329d3.zip
Bug 545287 - Text is clipped
Reduced minimum width for unbordered text. See https://bugs.eclipse.org/bugs/attachment.cgi?id=277832 Change-Id: I61829cf3e5a91608354a1d3479a66dae02a8f478 Signed-off-by: Pavel Matveev <pmatveev42@gmail.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index abdf660c7b..9300825b6b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -269,7 +269,7 @@ void createHandle (int index) {
}
imContext = OS.imContextLast();
if ((style & SWT.SINGLE) != 0) {
- GTK.gtk_entry_set_width_chars(handle, 6);
+ GTK.gtk_entry_set_width_chars(handle, 1);
}
// In GTK 3 font description is inherited from parent widget which is not how SWT has always worked,
// reset to default font to get the usual behavior

Back to the top