aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2365.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2365.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2365.java b/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
index 6a9d9e6b1a..b9e96c2f37 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
@@ -43,14 +43,18 @@ public class Ticket2365 extends LegacyApplication {
private Panel createMultilevelPanel(int i, Panel panel) {
if (panel == null) {
- panel = new Panel("Panel level " + i);
+ VerticalLayout panelLayout = new VerticalLayout();
+ panelLayout.setMargin(true);
+ panel = new Panel("Panel level " + i, panelLayout);
panel.setSizeFull();
- panel.getContent().setSizeFull();
+ panelLayout.setSizeFull();
}
- Panel p = new Panel("Panel level " + i--);
- p.getContent().setSizeFull();
+ VerticalLayout pl = new VerticalLayout();
+ pl.setMargin(true);
+ pl.setSizeFull();
+ Panel p = new Panel("Panel level " + i--, pl);
p.setSizeFull();
- panel.addComponent(p);
+ pl.addComponent(p);
if (i > 0) {
createMultilevelPanel(i, p);
}