summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2283.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2283.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2283.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2283.java b/uitest/src/com/vaadin/tests/tickets/Ticket2283.java
new file mode 100644
index 0000000000..5576e48fba
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2283.java
@@ -0,0 +1,29 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.ui.Alignment;
+import com.vaadin.ui.GridLayout;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.UI.LegacyWindow;
+
+public class Ticket2283 extends Application.LegacyApplication {
+
+ @Override
+ public void init() {
+ LegacyWindow w = new LegacyWindow(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 "));
+ Label l = new Label("Colspan2, align right");
+ gl.addComponent(l, 0, 1, 1, 1);
+ gl.setComponentAlignment(l, Alignment.TOP_RIGHT);
+ w.setContent(gl);
+
+ }
+
+}