Search code examples
smartgwt

Spacing In VLayout


I am working inside a Tabpane and I want to have 2 buttons on the bottom-right of the tap-pane, so I thought I just add a LayoutSpacer, but this resulted in

enter image description here

but I wanted it to look like

enter image description here

How can I make my Layoutspacer "bigger"?


Solution

  • In Smart GWT there are different methods to set the size of the component's vertical dimension.

    Try with any one

    1. canvas.setHeight100()

    2. canvas.setHeight("100%")

    3. canvas.setHeight("*")

      Layouts may specially interpret percentage sizes on their children, and also allow "*" as a size.