]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #2296
authorArtur Signell <artur.signell@itmill.com>
Mon, 8 Dec 2008 14:38:44 +0000 (14:38 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 8 Dec 2008 14:38:44 +0000 (14:38 +0000)
svn changeset:6124/svn branch:trunk

WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html [new file with mode: 0644]
src/com/itmill/toolkit/tests/tickets/Ticket2296.java [new file with mode: 0644]

diff --git a/WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html b/WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html
new file mode 100644 (file)
index 0000000..9baf164
--- /dev/null
@@ -0,0 +1,10 @@
+<table width="100%" height="100%">
+       <tr>
+               <td>
+                       <div location="button1" style="height: 100px"></div>
+               </td>
+               <td width="500" style="background: darkgrey;">
+                       <div location="button2" style="height: 200px"></div>
+               </td>
+       </tr>
+</table>
diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2296.java b/src/com/itmill/toolkit/tests/tickets/Ticket2296.java
new file mode 100644 (file)
index 0000000..cddc211
--- /dev/null
@@ -0,0 +1,32 @@
+package com.itmill.toolkit.tests.tickets;
+
+import com.itmill.toolkit.Application;
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.CustomLayout;
+import com.itmill.toolkit.ui.Window;
+
+public class Ticket2296 extends Application {
+
+    public void init() {
+        Window w = new Window(getClass().getSimpleName());
+        setMainWindow(w);
+        setTheme("tests-tickets");
+        CustomLayout cl = new CustomLayout("Ticket2296");
+        cl.setSizeFull();
+        Button b = new Button("100%x100% button");
+        b.setSizeFull();
+        cl.addComponent(b, "button1");
+
+        b = new Button("100%x100% button");
+        b.setSizeFull();
+        cl.addComponent(b, "button2");
+
+        b = new Button("50%x50% button");
+        b.setWidth("50%");
+        b.setHeight("50%");
+        cl.addComponent(b, "button3");
+
+        w.setLayout(cl);
+    }
+
+}