mirror of
https://github.com/vaadin/framework.git
synced 2024-09-13 15:46:01 +02:00
parent
6f9edf7eef
commit
c0d846ba0a
28
src/com/itmill/toolkit/tests/tickets/Ticket2283.java
Normal file
28
src/com/itmill/toolkit/tests/tickets/Ticket2283.java
Normal file
@ -0,0 +1,28 @@
|
||||
package com.itmill.toolkit.tests.tickets;
|
||||
|
||||
import com.itmill.toolkit.Application;
|
||||
import com.itmill.toolkit.ui.GridLayout;
|
||||
import com.itmill.toolkit.ui.Label;
|
||||
import com.itmill.toolkit.ui.Window;
|
||||
import com.itmill.toolkit.ui.Layout.AlignmentHandler;
|
||||
|
||||
public class Ticket2283 extends Application {
|
||||
|
||||
public void init() {
|
||||
Window w = new Window(getClass().getSimpleName());
|
||||
setMainWindow(w);
|
||||
|
||||
GridLayout gl = new GridLayout(2, 2);
|
||||
gl.setSizeUndefined();
|
||||
|
||||
gl.addComponent(new Label(
|
||||
"Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
|
||||
gl.addComponent(new Label("Label 2 abc abc abc "));
|
||||
gl.addComponent(new Label("Colspan2, align right"), 0, 1, 1, 1);
|
||||
gl.setComponentAlignment(gl, AlignmentHandler.ALIGNMENT_RIGHT,
|
||||
AlignmentHandler.ALIGNMENT_TOP);
|
||||
w.setLayout(gl);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user