summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java b/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
index f129f01c63..522fbe7670 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
@@ -6,6 +6,7 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Notification;
+import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
public class Ticket1465ModalNotification extends LegacyApplication {
@@ -17,7 +18,9 @@ public class Ticket1465ModalNotification extends LegacyApplication {
"ButtonPanel containing a table test");
setMainWindow(mainWin);
- final Window modal = new Window("Modal window");
+ VerticalLayout layout = new VerticalLayout();
+ layout.setMargin(true);
+ final Window modal = new Window("Modal window", layout);
modal.setModal(true);
Button b = new Button("click to show notification",
@@ -31,7 +34,7 @@ public class Ticket1465ModalNotification extends LegacyApplication {
}
});
- modal.addComponent(b);
+ layout.addComponent(b);
b = new Button("click to warning notification",
new Button.ClickListener() {
@@ -43,7 +46,7 @@ public class Ticket1465ModalNotification extends LegacyApplication {
Notification.TYPE_WARNING_MESSAGE);
}
});
- modal.addComponent(b);
+ layout.addComponent(b);
b = new Button("click to Humanized notification",
new Button.ClickListener() {
@@ -55,7 +58,7 @@ public class Ticket1465ModalNotification extends LegacyApplication {
Notification.TYPE_HUMANIZED_MESSAGE);
}
});
- modal.addComponent(b);
+ layout.addComponent(b);
b = new Button("click to test modality!", new Button.ClickListener() {
@@ -66,7 +69,7 @@ public class Ticket1465ModalNotification extends LegacyApplication {
}
});
- modal.addComponent(b);
+ layout.addComponent(b);
mainWin.addWindow(modal);