Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug430600_ExpandItemHeaderHeight.java')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug430600_ExpandItemHeaderHeight.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug430600_ExpandItemHeaderHeight.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug430600_ExpandItemHeaderHeight.java
new file mode 100644
index 0000000000..0ac41df513
--- /dev/null
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug430600_ExpandItemHeaderHeight.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.tests.gtk.snippets;
+
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.*;
+public class Bug430600_ExpandItemHeaderHeight {
+
+ public static void main(String[] args) {
+ Display display = new Display();
+ Shell shell = new Shell(display);
+
+ ExpandBar expandBar = new ExpandBar(shell, SWT.NONE);
+
+ final ExpandItem xpndtmTest = new ExpandItem(expandBar, SWT.NONE);
+ xpndtmTest.setExpanded(true);
+
+ System.out.println(xpndtmTest.getHeaderHeight()); //Correct
+ xpndtmTest.setHeight(100);
+ System.out.println(xpndtmTest.getHeaderHeight()); //Some negative number
+ }
+} \ No newline at end of file

Back to the top