@@ -0,0 +1,706 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.ui.Button;%0Aimport com.itmill.toolkit.ui.GridLayout;%0Aimport com.itmill.toolkit.ui.Window;%0A%0Apublic class Ticket2404 extends Application %7B%0A%0A    @Override%0A    public void init() %7B%0A%0A        GridLayout gl = new GridLayout(2, 2);%0A        gl.setSizeFull();%0A%0A        Button bb = new Button(%221st row on 2x2 GridLayout%22);%0A        bb.setSizeFull();%0A        gl.addComponent(bb, 0, 0, 1, 0);%0A        for (int i = 0; i %3C 2; i++) %7B%0A            Button b = new Button(%22%22 + i);%0A            gl.addComponent(b);%0A            b.setSizeFull();%0A        %7D%0A%0A        setMainWindow(new Window(%22GridLayout test%22, gl));%0A%0A    %7D%0A%7D%0A

Test for #2404