@@ -0,0 +1,884 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.ui.GridLayout;%0Aimport com.itmill.toolkit.ui.Label;%0Aimport com.itmill.toolkit.ui.Window;%0Aimport com.itmill.toolkit.ui.Layout.AlignmentHandler;%0A%0Apublic class Ticket2283 extends Application %7B%0A%0A    public void init() %7B%0A        Window w = new Window(getClass().getSimpleName());%0A        setMainWindow(w);%0A%0A        GridLayout gl = new GridLayout(2, 2);%0A        gl.setSizeUndefined();%0A%0A        gl.addComponent(new Label(%0A                %22Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf%22));%0A        gl.addComponent(new Label(%22Label 2 abc abc abc %22));%0A        gl.addComponent(new Label(%22Colspan2, align right%22), 0, 1, 1, 1);%0A        gl.setComponentAlignment(gl, AlignmentHandler.ALIGNMENT_RIGHT,%0A                AlignmentHandler.ALIGNMENT_TOP);%0A        w.setLayout(gl);%0A%0A    %7D%0A%0A%7D%0A

Test case for #2283