Search code examples
gwtrenderuibinder

GWT Trying to get a View to be resizable in Height


I'm currently Initializing a GWT view i created and i'm setting it's height explicitly.

the view isn't resizable in height. whenever i render the view (clear from root panel and re-add to root panel), the view is resizable in height...

RootRootPanel.get().clear();
RootPanel.get().add(asWidget());

i don't wish to render the view in the init() function.

is there another way to make the view resizable in height?

thanks


Solution

  • If you want Resizable screens, Use RootLayoutPanel.get().add() method. Add the widgets inside to and don't forget to mention its size in percentages through out the hierarchy. I had the simillar problem. Just check the following link and its accepted answer.

    GWT Re-sizing components on browser window resize