diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/LayoutDemo.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/LayoutDemo.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/LayoutDemo.java b/uitest/src/com/vaadin/tests/LayoutDemo.java index b0492c22c1..bcbff24acd 100644 --- a/uitest/src/com/vaadin/tests/LayoutDemo.java +++ b/uitest/src/com/vaadin/tests/LayoutDemo.java @@ -128,9 +128,11 @@ public class LayoutDemo extends com.vaadin.server.LegacyApplication { } private Component getExampleComponent(String caption) { - final Panel panel = new Panel(); + VerticalLayout layout = new VerticalLayout(); + layout.setMargin(true); + final Panel panel = new Panel(layout); panel.setCaption("Panel component " + caption); - panel.addComponent(new Label( + layout.addComponent(new Label( "Panel is a container for other components, by default it draws a frame around it's " + "extremities and may have a caption to clarify the nature of the contained components' purpose." + " Panel contains an layout where the actual contained components are added, " |