diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
commit | aca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch) | |
tree | 7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java | |
parent | 1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff) | |
download | vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.tar.gz vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.zip |
Panel and Window based on AbstractSingleComponentContainer (#2924)
Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2
Diffstat (limited to 'uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java b/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java index 45a32dd53a..d52e38ca40 100644 --- a/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java +++ b/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java @@ -346,18 +346,22 @@ public class LiferayThemeDemo extends LegacyApplication { l.addComponent(new Label("Normal Panel", ContentMode.HTML)); - Panel p = new Panel("Normal Panel"); + VerticalLayout pl = new VerticalLayout(); + pl.setMargin(true); + Panel p = new Panel("Normal Panel", pl); p.setHeight("100px"); - p.addComponent(new Label("Panel content")); + pl.addComponent(new Label("Panel content")); l.addComponent(p); l.addComponent(new Label( "Light Style (<code>LiferayTheme.PANEL_LIGHT</code>)", ContentMode.HTML)); - Panel p2 = new Panel("Light Style Panel"); + VerticalLayout p2l = new VerticalLayout(); + p2l.setMargin(true); + Panel p2 = new Panel("Light Style Panel", p2l); p2.setStyleName(LiferayTheme.PANEL_LIGHT); - p2.addComponent(new Label("Panel content")); + p2l.addComponent(new Label("Panel content")); l.addComponent(p2); return l; |