@@ -0,0 +1,997 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.data.Property;%0Aimport com.itmill.toolkit.data.Property.ValueChangeEvent;%0Aimport com.itmill.toolkit.ui.Button;%0Aimport com.itmill.toolkit.ui.Label;%0Aimport com.itmill.toolkit.ui.OrderedLayout;%0Aimport com.itmill.toolkit.ui.Window;%0A%0Apublic class Ticket2001 extends Application %7B%0A%0A    public void init() %7B%0A        final Window w = new Window(getClass().getName());%0A        setMainWindow(w);%0A%0A        final OrderedLayout l = new OrderedLayout();%0A        l.addComponent(new Label(%22row 1%22));%0A        l.addComponent(new Label(%22row 2%22));%0A        w.addComponent(l);%0A%0A        final Button b = new Button(%22fixed width: 30px%22, false);%0A        b.addListener(new Property.ValueChangeListener() %7B%0A            public void valueChange(ValueChangeEvent event) %7B%0A                l.setWidth(b.booleanValue() ? 30 : -1);%0A            %7D%0A        %7D);%0A        b.setImmediate(true);%0A        w.addComponent(b);%0A%0A    %7D%0A%7D%0A

Test for #2001