aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
+ }
+
+}