summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2339.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2339.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2339.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2339.java b/uitest/src/com/vaadin/tests/tickets/Ticket2339.java
new file mode 100644
index 0000000000..ce884bada7
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2339.java
@@ -0,0 +1,39 @@
+package com.vaadin.tests.tickets;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+
+import com.vaadin.Application;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.CustomLayout;
+import com.vaadin.ui.UI.LegacyWindow;
+
+public class Ticket2339 extends Application.LegacyApplication {
+
+ @Override
+ public void init() {
+
+ final LegacyWindow mainWin = new LegacyWindow(getClass()
+ .getSimpleName());
+ setMainWindow(mainWin);
+
+ try {
+ CustomLayout cl = new CustomLayout(
+ new ByteArrayInputStream(
+ "<div style=\"width:400px;overflow:hidden;background-color:red;\"><div style=\"border:1em solid blue; height:4em; padding:1em 1.5em;\" location=\"b\"></div></div>"
+ .getBytes()));
+ Button button = new Button("b");
+ button.setSizeFull();
+
+ cl.addComponent(button, "b");
+
+ mainWin.addComponent(cl);
+
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ }
+
+}