@@ -0,0 +1,20 @@ | |||
package com.itmill.toolkit.tests.tickets; | |||
import com.itmill.toolkit.Application; | |||
import com.itmill.toolkit.ui.Button; | |||
import com.itmill.toolkit.ui.Window; | |||
public class Ticket2101 extends Application { | |||
public void init() { | |||
Window w = new Window(getClass().getSimpleName()); | |||
setMainWindow(w); | |||
Button b = new Button( | |||
"Button with a long text which will not fit on 50 pixels"); | |||
b.setWidth("50px"); | |||
w.getLayout().addComponent(b); | |||
} | |||
} |