diff options
author | Carolyn MacLeod <carolyn> | 2006-10-26 15:36:28 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2006-10-26 15:36:28 +0000 |
commit | 8896fd7c9792fc29c8596f4b7aafb9faf7045bb7 (patch) | |
tree | 860e37d85b162d080756658be1998174dc559943 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java | |
parent | b52ca2bdf41a4bba7beb24ac0d20ba09ccb243ce (diff) | |
download | eclipse.platform.swt-8896fd7c9792fc29c8596f4b7aafb9faf7045bb7.tar.gz eclipse.platform.swt-8896fd7c9792fc29c8596f4b7aafb9faf7045bb7.tar.xz eclipse.platform.swt-8896fd7c9792fc29c8596f4b7aafb9faf7045bb7.zip |
clean the scroll bits
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java | 8 |
1 files changed, 8 insertions, 0 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 70c295da4b..1957a8cf92 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 @@ -23,6 +23,14 @@ public DateTime (Composite parent, int style) { } static int checkStyle (int style) { + /* + * Even though it is legal to create this widget + * with scroll bars, they serve no useful purpose + * because they do not automatically scroll the + * widget's client area. The fix is to clear + * the SWT style. + */ + style &= ~(SWT.H_SCROLL | SWT.V_SCROLL); return checkBits (style, SWT.DATE, SWT.TIME, SWT.CALENDAR, 0, 0, 0); } |