aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket5157.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket5157.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket5157.java b/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
index 19f367846e..47cc7e1c4d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
@@ -7,6 +7,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.VerticalLayout;
/**
* Key codes were converted to lower case on the server (overlapping special key
@@ -22,14 +23,16 @@ public class Ticket5157 extends LegacyApplication {
"Forumtests Application");
setMainWindow(mainWindow);
- Panel p = new Panel();
+ VerticalLayout pl = new VerticalLayout();
+ pl.setMargin(true);
+ Panel p = new Panel(pl);
mainWindow.addComponent(p);
Label l = new Label("Panel with F8 bound");
- p.addComponent(l);
+ pl.addComponent(l);
TextField f = new TextField();
- p.addComponent(f);
+ pl.addComponent(f);
p.addAction(new ShortcutListener("F8", KeyCode.F8, null) {