@@ -0,0 +1,1090 @@
+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.Label;%0Aimport com.itmill.toolkit.ui.Window;%0Aimport com.itmill.toolkit.ui.Button.ClickEvent;%0Aimport com.itmill.toolkit.ui.Button.ClickListener;%0A%0Apublic class Ticket2267 extends Application %7B%0A%0A    Label l = new Label(%220%22);%0A%0A    public void init() %7B%0A        Window w = new Window(getClass().getSimpleName());%0A        setMainWindow(w);%0A        // setTheme(%22tests-tickets%22);%0A        GridLayout gl = new GridLayout(4, 2);%0A%0A        Button button = new Button(%221%22, new ClickListener() %7B%0A%0A            public void buttonClick(ClickEvent event) %7B%0A                Button b = event.getButton();%0A                l.setValue(l.getValue() + b.getCaption());%0A%0A            %7D%0A%0A        %7D);%0A%0A        gl.addComponent(l, 0, 0, 3, 0);%0A        gl.addComponent(button);%0A        gl.addComponent(new Label(%222%22));%0A        gl.addComponent(new Label(%223%22));%0A        gl.addComponent(new Label(%224%22));%0A%0A        w.setLayout(gl);%0A%0A    %7D%0A%7D%0A

Test case for #2267