]> source.dussan.org Git - vaadin-framework.git/commitdiff
#2282 test case
authorArtur Signell <artur.signell@itmill.com>
Wed, 3 Dec 2008 15:41:27 +0000 (15:41 +0000)
committerArtur Signell <artur.signell@itmill.com>
Wed, 3 Dec 2008 15:41:27 +0000 (15:41 +0000)
svn changeset:6087/svn branch:trunk

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

diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2282.java b/src/com/itmill/toolkit/tests/tickets/Ticket2282.java
new file mode 100644 (file)
index 0000000..7e7a884
--- /dev/null
@@ -0,0 +1,25 @@
+package com.itmill.toolkit.tests.tickets;
+
+import com.itmill.toolkit.Application;
+import com.itmill.toolkit.ui.FormLayout;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.Window;
+
+public class Ticket2282 extends Application {
+
+    public void init() {
+        Window w = new Window(getClass().getSimpleName());
+        setMainWindow(w);
+        setTheme("tests-tickets");
+        w.getLayout().setSizeUndefined();
+
+        FormLayout formLayout = new FormLayout();
+        formLayout.setSizeUndefined();
+        formLayout.setStyleName("borders");
+        formLayout
+                .addComponent(new Label(
+                        "This should not be wider than this label + reserved error space"));
+        w.addComponent(formLayout);
+    }
+
+}