aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/TouchScrollables.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/TouchScrollables.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/TouchScrollables.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/components/TouchScrollables.java b/uitest/src/com/vaadin/tests/components/TouchScrollables.java
index 6c340804af..e80a8801a2 100644
--- a/uitest/src/com/vaadin/tests/components/TouchScrollables.java
+++ b/uitest/src/com/vaadin/tests/components/TouchScrollables.java
@@ -65,12 +65,14 @@ public class TouchScrollables extends TestBase {
Layout cssLayout = new CssLayout();
cssLayout.setCaption("Panel");
- final Panel p = new Panel();
+ final VerticalLayout pl = new VerticalLayout();
+ pl.setMargin(true);
+ final Panel p = new Panel(pl);
p.setHeight("400px");
Label l50 = null;
for (int i = 0; i < 100; i++) {
Label c = new Label("Label" + i);
- p.addComponent(c);
+ pl.addComponent(c);
if (i == 50) {
l50 = c;
}