From d497a0f4367a39eb7b39249f51f421d661b23499 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 8 Dec 2008 14:38:44 +0000 Subject: [PATCH] Test case for #2296 svn changeset:6124/svn branch:trunk --- .../tests-tickets/layouts/Ticket2296.html | 10 ++++++ .../toolkit/tests/tickets/Ticket2296.java | 32 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 WebContent/ITMILL/themes/tests-tickets/layouts/Ticket2296.html create mode 100644 src/com/itmill/toolkit/tests/tickets/Ticket2296.java 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 @@ + + + + + +
+
+
+
+
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); + } + +} -- 2.39.5