JarekToro / responsive-layout

The layout to beat them all!
https://vaadin.com/directory#!addon/responsive-layout
57 stars 24 forks source link

Vertical alignment #29

Closed bassmartin closed 7 years ago

bassmartin commented 7 years ago

Is there a way to set vertical alignment?

Here is what my UI looks like

screen shot 2017-02-08 at 09 54 13

I would like the button to be pushed down so it aligns with the combo box.

        ResponsiveLayout layout = new ResponsiveLayout()
        layout.addRow().withSpacing(true).with {
            ...
            addColumn().withDisplayRules(12, 12, 2, 2).withComponent(clientConfig)
            addColumn().withDisplayRules(12, 12, 2, 2).withComponent(toolbar)
        }

Thanks.

JarekToro commented 7 years ago

The row has a set alignment method you can try Bottom_left Of Middle_left enums

bassmartin commented 7 years ago

Works like a charm. Thanks again Jarek!

galcyurio commented 6 years ago

For future visitors. Maybe method has been replaced.

ResponsiveRow.setDefaultComponentAlignment()