Reputation:
I am working on a piece of code in which I have a panel and say 5 radio buttons listed vertically. Next I change this number to 15 but my panel size is say 100*100 in which last few radio buttons will not get displayed. So now I want my panel to resize automatically depending upon the inner panel size. How could I achieve this?
Thanks in advance!
Upvotes: 1
Views: 3150
Reputation: 3380
To make your application to work browser's resize, you should start working on LayoutPanels first.
Then remember you have to set your panels and widgets width
and height
attributes in percentages
Make sure that the entire hierarchy contains only LayoutPanels
Don't ever use Absolute Panel when working with resizing of the application
If you land up in trouble when working with LayoutPanels like I did, the following link will help you
GWT Re-sizing components on browser window resize
Upvotes: 1
Reputation: 9537
It depends a lot on your experience with screen design and lay-outing.You can search about responsive and adaptive layouting concepts and try it out with GWT.
For a start - you should reference GWT attempt at re-sizable screens using LayoutPanel
You can also try using a scroll panel in your case (if 50 buttons appear what then scenario? )
Upvotes: 0