summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-04-17 17:17:39 +0300
committerJohn Ahlroos <john@vaadin.com>2013-04-17 17:17:39 +0300
commitfc4aeac8b43bb3f200b25a997ade05075592ee90 (patch)
tree5a6b2cf6610832acf0447674d26308fa37a08bf4 /uitest
parentc7ff7d5dda23f434eb8e056c808c63efefc0d904 (diff)
downloadvaadin-framework-fc4aeac8b43bb3f200b25a997ade05075592ee90.tar.gz
vaadin-framework-fc4aeac8b43bb3f200b25a997ade05075592ee90.zip
Fixed IE8 scrollbar issue with vertical layout when using both expansions and alignments #11169
Change-Id: Ia62db30e4e7f9bd02966db31b3bb691a1a60e58d
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.html26
-rw-r--r--uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java45
2 files changed, 71 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.html b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.html
new file mode 100644
index 0000000000..e0b17ec8cf
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.html
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:7070" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>run/com.vaadin.tests.layouts.VerticalLayoutSlotExpansionAndAlignment?restartApplication</td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>no-scrollbars</td>
+</tr>
+</tbody></table>
+</body>
+</html>
diff --git a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java
new file mode 100644
index 0000000000..bba8ccf120
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java
@@ -0,0 +1,45 @@
+package com.vaadin.tests.layouts;
+
+import com.vaadin.annotations.Theme;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.ui.Alignment;
+import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.UI;
+import com.vaadin.ui.VerticalLayout;
+import com.vaadin.ui.themes.Reindeer;
+
+@SuppressWarnings("serial")
+public class VerticalLayoutSlotExpansionAndAlignment extends UI {
+
+ @Override
+ protected void init(VaadinRequest request) {
+
+ VerticalLayout layout = new VerticalLayout();
+ layout.setSizeFull();
+ setContent(layout);
+
+ HorizontalLayout header = new HorizontalLayout(new Label("HEADER"));
+ header.setHeight("100px");
+ header.setWidth("100%");
+ header.setStyleName(Reindeer.LAYOUT_WHITE);
+ layout.addComponent(header);
+
+ HorizontalLayout content = new HorizontalLayout(new Label("CONTENT"));
+ content.setSizeFull();
+ content.setStyleName(Reindeer.LAYOUT_BLUE);
+ layout.addComponent(content);
+
+ HorizontalLayout footer = new HorizontalLayout(new Label("FOOTER"));
+ footer.setHeight("150px");
+ footer.setWidth("100%");
+ footer.setStyleName(Reindeer.LAYOUT_BLACK);
+ layout.addComponent(footer);
+
+ // This break things
+ layout.setComponentAlignment(footer, Alignment.BOTTOM_LEFT);
+ layout.setExpandRatio(content, 1);
+
+ }
+
+} \ No newline at end of file