user1722889
user1722889

Reputation:

How to make GWT panel resizable depending upon the content in the panel?

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

Answers (2)

Abhijith Nagaraja
Abhijith Nagaraja

Reputation: 3380

  1. To make your application to work browser's resize, you should start working on LayoutPanels first.

  2. Then remember you have to set your panels and widgets width and height attributes in percentages

  3. Make sure that the entire hierarchy contains only LayoutPanels

  4. 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

appbootup
appbootup

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

Related Questions