Android's LinearLayout individual children android:layout_weight attribute assigns an "importance" value to a view in terms of how much space it should occupy on the screen. A larger weight value allows it to expand to fill any remaining space in the parent view. Child views can specify a weight value, and then any remaining space in the view group is assigned to children in the proportion of their declared weight. How can I get the same children size adjustment in GWT's VerticalPanel or HorizontalPanel?
Asked
Active
Viewed 51 times
1 Answers
2
Don't think in GWT but in HTML.
I also think it is better to work with divs in this case. Maybe checkout some library like GWT bootstrap, or GWT DominoUI
I think this thread actually gives an HTML answer to what you want: Make a div fill the height of the remaining screen space
Translating this into a GWT project should be pretty straightforward.

Knarf
- 2,077
- 1
- 16
- 24
-
1@Dmitry this can be done in HTML using the css grids, check out how this feature is implemented in domino-ui [Grids](https://dominokit.github.io/domino-ui-demo/index.html?theme=indigo#grids) – Ahmad Bawaneh Jan 09 '19 at 14:07
-
1@AhmadBawaneh This only is horizontal fill I think and not vertical ? – Knarf Jan 09 '19 at 15:33
-
1[Grid layout](https://dominokit.github.io/domino-ui-demo/index.html?theme=indigo#grid-layout) can be used for both , or even a combination of grids and grid layout. – Ahmad Bawaneh Jan 14 '19 at 16:38