]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #2283
authorArtur Signell <artur.signell@itmill.com>
Wed, 3 Dec 2008 16:14:30 +0000 (16:14 +0000)
committerArtur Signell <artur.signell@itmill.com>
Wed, 3 Dec 2008 16:14:30 +0000 (16:14 +0000)
svn changeset:6088/svn branch:trunk

src/com/itmill/toolkit/tests/tickets/Ticket2283.java [new file with mode: 0644]

diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2283.java b/src/com/itmill/toolkit/tests/tickets/Ticket2283.java
new file mode 100644 (file)
index 0000000..e5bd587
--- /dev/null
@@ -0,0 +1,28 @@
+package com.itmill.toolkit.tests.tickets;
+
+import com.itmill.toolkit.Application;
+import com.itmill.toolkit.ui.GridLayout;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Layout.AlignmentHandler;
+
+public class Ticket2283 extends Application {
+
+    public void init() {
+        Window w = new Window(getClass().getSimpleName());
+        setMainWindow(w);
+
+        GridLayout gl = new GridLayout(2, 2);
+        gl.setSizeUndefined();
+
+        gl.addComponent(new Label(
+                "Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
+        gl.addComponent(new Label("Label 2 abc abc abc "));
+        gl.addComponent(new Label("Colspan2, align right"), 0, 1, 1, 1);
+        gl.setComponentAlignment(gl, AlignmentHandler.ALIGNMENT_RIGHT,
+                AlignmentHandler.ALIGNMENT_TOP);
+        w.setLayout(gl);
+
+    }
+
+}