summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java')
-rw-r--r--uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java45
1 files changed, 45 insertions, 0 deletions
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