aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2008-12-08 14:38:44 +0000
committerArtur Signell <artur.signell@itmill.com>2008-12-08 14:38:44 +0000
commitd497a0f4367a39eb7b39249f51f421d661b23499 (patch)
tree3c711a7a32c6bf0c51b70725422496ada39e98a8
parentc970fa7a2a581ccff5f2ce7deef7f8aa3edb4275 (diff)
downloadvaadin-framework-d497a0f4367a39eb7b39249f51f421d661b23499.tar.gz
vaadin-framework-d497a0f4367a39eb7b39249f51f421d661b23499.zip
Test case for #2296
svn changeset:6124/svn branch:trunk
-rw-r--r--WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html10
-rw-r--r--src/com/itmill/toolkit/tests/tickets/Ticket2296.java32
2 files changed, 42 insertions, 0 deletions
diff --git a/WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html b/WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html
new file mode 100644
index 0000000000..9baf164d06
--- /dev/null
+++ b/WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html
@@ -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
index 0000000000..cddc2116a2
--- /dev/null
+++ b/src/com/itmill/toolkit/tests/tickets/Ticket2296.java
@@ -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);
+ }
+
+}