summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2304.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2304.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2304.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2304.java b/uitest/src/com/vaadin/tests/tickets/Ticket2304.java
new file mode 100644
index 0000000000..ccef7a9a92
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2304.java
@@ -0,0 +1,31 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.shared.ui.label.ContentMode;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.Panel;
+import com.vaadin.ui.UI.LegacyWindow;
+import com.vaadin.ui.themes.Reindeer;
+
+public class Ticket2304 extends Application.LegacyApplication {
+
+ @Override
+ public void init() {
+ final LegacyWindow main = new LegacyWindow(getClass().getName()
+ .substring(getClass().getName().lastIndexOf(".") + 1));
+ setMainWindow(main);
+
+ Panel p = new Panel();
+ p.setStyleName(Reindeer.PANEL_LIGHT);
+ main.addComponent(p);
+ p.setHeight("100px");
+
+ Label l = new Label(
+ "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\n");
+ l.setContentMode(ContentMode.PREFORMATTED);
+ p.addComponent(l);
+ main.addComponent(new Label(
+ "This text should be right below the panel, w/o spacing"));
+ }
+
+}