@@ -0,0 +1,1544 @@
+package com.itmill.toolkit.tests.layouts;%0A%0Aimport com.itmill.toolkit.tests.components.TestBase;%0Aimport com.itmill.toolkit.ui.GridLayout;%0Aimport com.itmill.toolkit.ui.Label;%0Aimport com.itmill.toolkit.ui.Panel;%0A%0Apublic class GridLayoutInsidePanel extends TestBase %7B%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22The first Panel contains a VerticalLayout, which contains a GridLayout, which contains a Label. The second panel directly contains a GridLayout, which contains a Label. Both should be rendered in the same way.%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 2652;%0A    %7D%0A%0A    @Override%0A    protected void setup() %7B%0A        %7B%0A            GridLayout gl = new GridLayout(1, 1);%0A            gl.setSizeUndefined();%0A            gl.addComponent(new Label(%0A                    %22A label which defines the size of the GL%22));%0A%0A            Panel p = new Panel(%22Panel 1%22);%0A            p.getLayout().setMargin(false);%0A            p.setSizeUndefined();%0A            p.getLayout().setSizeUndefined();%0A%0A            p.addComponent(gl);%0A            addComponent(p);%0A        %7D%0A        %7B%0A            GridLayout gl = new GridLayout(1, 1);%0A            gl.setSizeUndefined();%0A            gl.addComponent(new Label(%0A                    %22A label which defines the size of the GL%22));%0A%0A            Panel p = new Panel(%22Panel 2%22, gl);%0A            p.getLayout().setMargin(false);%0A            p.setSizeUndefined();%0A            p.getLayout().setSizeUndefined();%0A%0A            addComponent(p);%0A        %7D%0A    %7D%0A%0A%7D%0A

Test case for #2652