@@ -0,0 +1,1343 @@
+package com.itmill.toolkit.tests.tickets;%0D%0A%0D%0Aimport com.itmill.toolkit.Application;%0D%0Aimport com.itmill.toolkit.ui.Button;%0D%0Aimport com.itmill.toolkit.ui.ComboBox;%0D%0Aimport com.itmill.toolkit.ui.GridLayout;%0D%0Aimport com.itmill.toolkit.ui.Label;%0D%0Aimport com.itmill.toolkit.ui.Window;%0D%0Aimport com.itmill.toolkit.ui.Button.ClickEvent;%0D%0Aimport com.itmill.toolkit.ui.Button.ClickListener;%0D%0A%0D%0Apublic class Ticket2209 extends Application %7B%0D%0A%0D%0A    private GridLayout gl;%0D%0A    private ComboBox combo;%0D%0A    private Label labelLong;%0D%0A%0D%0A    @Override%0D%0A    public void init() %7B%0D%0A        setMainWindow(new Window());%0D%0A%0D%0A        gl = new GridLayout(1, 2);%0D%0A        gl.setStyleName(%22borders%22);%0D%0A        getMainWindow().addComponent(gl);%0D%0A        setTheme(%22tests-tickets%22);%0D%0A        combo = new ComboBox(%22Combo caption%22);%0D%0A        labelLong = new Label(%0D%0A                %22A long label, longer than the combo box. Why doesn't it affect the width? And why is the gridlayout so high?%22);%0D%0A        gl.addComponent(combo);%0D%0A        gl.addComponent(labelLong);%0D%0A%0D%0A        Button b = new Button(%22Add label text%22, new ClickListener() %7B%0D%0A%0D%0A            @Override%0D%0A            public void buttonClick(ClickEvent event) %7B%0D%0A                labelLong.setValue(labelLong.getValue() + %22-12345%22);%0D%0A            %7D%0D%0A%0D%0A        %7D);%0D%0A        getMainWindow().addComponent(b);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case for #2209