summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2325.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2325.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2325.java b/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
new file mode 100644
index 0000000000..ecc897d4ba
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
@@ -0,0 +1,30 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.ui.UI.LegacyWindow;
+import com.vaadin.ui.TextArea;
+import com.vaadin.ui.VerticalLayout;
+import com.vaadin.ui.Window;
+
+public class Ticket2325 extends Application.LegacyApplication {
+
+ @Override
+ public void init() {
+ LegacyWindow main = new LegacyWindow("Testing....");
+ setMainWindow(main);
+
+ final VerticalLayout lo = new VerticalLayout();
+ lo.setSizeUndefined();
+ lo.setWidth("100%");
+ TextArea tf = new TextArea();
+ tf.setValue("The textfield should fill the window."
+ + "\n - Try to resize window\n - Try to push REdo button");
+ tf.setRows(10);
+ tf.setWidth("100%");
+ lo.addComponent(tf);
+ Window subWin = new Window(
+ "This window should initially be as wide as the caption", lo);
+ main.addWindow(subWin);
+ // subWin.setWidth("500px");
+ }
+}