@@ -0,0 +1,2009 @@
+package com.itmill.toolkit.tests.tickets;%0D%0A%0D%0Aimport com.itmill.toolkit.Application;%0D%0Aimport com.itmill.toolkit.terminal.UserError;%0D%0Aimport com.itmill.toolkit.ui.ExpandLayout;%0D%0Aimport com.itmill.toolkit.ui.GridLayout;%0D%0Aimport com.itmill.toolkit.ui.Panel;%0D%0Aimport com.itmill.toolkit.ui.TextField;%0D%0Aimport com.itmill.toolkit.ui.Window;%0D%0A%0D%0Apublic class Ticket2032 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        // setTheme(%22tests-tickets%22);%0D%0A        GridLayout layout = new GridLayout(10, 10);%0D%0A        w.setLayout(layout);%0D%0A        createUI(layout);%0D%0A    %7D%0D%0A%0D%0A    private void createUI(GridLayout layout) %7B%0D%0A        ExpandLayout el = new ExpandLayout(ExpandLayout.ORIENTATION_HORIZONTAL);%0D%0A        Panel p = new Panel(el);%0D%0A        p.setWidth(600);%0D%0A        p.setHeight(500);%0D%0A        p.getLayout().setSizeFull();%0D%0A%0D%0A        TextField tf = new TextField(%22Field caption%22);%0D%0A        tf.setValue(%22Expanded%22);%0D%0A        el.addComponent(tf);%0D%0A        el.expand(tf);%0D%0A        tf.setSizeFull();%0D%0A%0D%0A        tf = new TextField(%22Vertical bottom%22);%0D%0A        // tf.setComponentError(new UserError(%22Error%22));%0D%0A        tf.setValue(%22Vertical bottom%22);%0D%0A        el.setComponentAlignment(tf, ExpandLayout.ALIGNMENT_LEFT,%0D%0A                ExpandLayout.ALIGNMENT_BOTTOM);%0D%0A        el.addComponent(tf);%0D%0A%0D%0A        tf = new TextField(%22Vertical top%22);%0D%0A        tf.setComponentError(new UserError(%22Error%22));%0D%0A        el.addComponent(tf);%0D%0A        tf.setValue(%22Vertical top%22);%0D%0A        el.setComponentAlignment(tf, ExpandLayout.ALIGNMENT_LEFT,%0D%0A                ExpandLayout.ALIGNMENT_TOP);%0D%0A        tf = new TextField(%22Vertical center%22);%0D%0A        el.addComponent(tf);%0D%0A        tf.setValue(%22Vertical center%22);%0D%0A        // tf.setComponentError(new UserError(%22Error%22));%0D%0A        el.setComponentAlignment(tf, ExpandLayout.ALIGNMENT_LEFT,%0D%0A                ExpandLayout.ALIGNMENT_VERTICAL_CENTER);%0D%0A%0D%0A        layout.addComponent(p);%0D%0A    %7D%0D%0A%7D%0D%0A

Test case for #2032