@@ -0,0 +1,519 @@
+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.Window;%0D%0A%0D%0Apublic class Ticket2101 extends Application %7B%0D%0A%0D%0A    public void init() %7B%0D%0A        Window w = new Window(getClass().getSimpleName());%0D%0A        setMainWindow(w);%0D%0A%0D%0A        Button b = new Button(%0D%0A                %22Button with a long text which will not fit on 50 pixels%22);%0D%0A        b.setWidth(%2250px%22);%0D%0A%0D%0A        w.getLayout().addComponent(b);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case for #2101