@@ -0,0 +1,1831 @@
+package com.vaadin.tests.layouts;%0D%0A%0D%0Aimport com.vaadin.tests.components.TestBase;%0D%0Aimport com.vaadin.ui.Button;%0D%0Aimport com.vaadin.ui.HorizontalLayout;%0D%0Aimport com.vaadin.ui.Label;%0D%0Aimport com.vaadin.ui.VerticalLayout;%0D%0Aimport com.vaadin.ui.Button.ClickEvent;%0D%0A%0D%0Apublic class HiddenHorizontalLayout extends TestBase %7B%0D%0A%0D%0A    @Override%0D%0A    protected String getDescription() %7B%0D%0A        return %22Test to verify that toggling layout visibility works properly.%22;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected Integer getTicketNumber() %7B%0D%0A        return 3183;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public void setup() %7B%0D%0A%0D%0A        VerticalLayout vl = new VerticalLayout();%0D%0A        vl.setSizeFull();%0D%0A        getLayout().addComponent(vl);%0D%0A%0D%0A        final HorizontalLayout hl = new HorizontalLayout();%0D%0A        hl.setWidth(%22100%25%22);%0D%0A        hl.setHeight(%2230px%22);%0D%0A        hl.addComponent(new Label(%22label1%22));%0D%0A        hl.addComponent(new Label(%22label2%22));%0D%0A        hl.addComponent(new Label(%22label3%22));%0D%0A        hl.addComponent(new Label(%22label4%22));%0D%0A        vl.addComponent(hl);%0D%0A%0D%0A        Label l = new Label(%22Steps to reproduce with Vaadin 6.0.1:%3Cbr/%3E%22%0D%0A                + %221. set browser size smaller than fullscreen%3Cbr/%3E%22%0D%0A                + %222. Refresh page with browser%3Cbr/%3E%22%0D%0A                + %223. Click %5C%22toggle layout visibility%5C%22%3Cbr%3E%22%0D%0A                + %224. Resize browser window to full %3Cbr/%3E%22%0D%0A                + %225. Click %5C%22toggle layout visibility%5C%22%3Cbr/%3E%22,%0D%0A                Label.CONTENT_XHTML);%0D%0A        vl.addComponent(l);%0D%0A        Button b = new Button(%22toggle layout visibility%22,%0D%0A                new Button.ClickListener() %7B%0D%0A%0D%0A                    public void buttonClick(ClickEvent event) %7B%0D%0A                        hl.setVisible(!hl.isVisible());%0D%0A                    %7D%0D%0A%0D%0A                %7D);%0D%0A        vl.addComponent(b);%0D%0A    %7D%0D%0A%0D%0A%7D

test case for #3183