Newbie question

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Newbie question

Postby seth_king » Thu Nov 02, 2006 5:37 am

When using Designer to layout the panels (flowpanels in this case) on a page how do I get them to scale with the size of the browser? Right now they are static and stay exactly where I drew them, no matter if the browser's window is small or large.

Thanks
seth_king
 
Posts: 3
Joined: Thu Nov 02, 2006 5:32 am

Re: Newbie question

Postby Eric Clayberg » Thu Nov 02, 2006 6:42 am

seth_king wrote:When using Designer to layout the panels (flowpanels in this case) on a page how do I get them to scale with the size of the browser? Right now they are static and stay exactly where I drew them, no matter if the browser's window is small or large.

Right-click on the panel and select Change size unit > % - percentage.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby seth_king » Thu Nov 02, 2006 7:32 am

That helps to an extent, but I guess I did not ask the question correctly.
I want the panels to maintain their size but to scale their position in the window. The best example would be Gmail with the login panel on the right side of the screen. The panel is always in your browser's view and the text (to the left of the login panel)just get shifted so that everything fixs on the screeen.

thanks
seth_king
 
Posts: 3
Joined: Thu Nov 02, 2006 5:32 am

Postby Eric Clayberg » Thu Nov 02, 2006 7:55 am

seth_king wrote:That helps to an extent, but I guess I did not ask the question correctly.
I want the panels to maintain their size but to scale their position in the window. The best example would be Gmail with the login panel on the right side of the screen. The panel is always in your browser's view and the text (to the left of the login panel)just get shifted so that everything fixs on the screeen.

You could fill the entire window with a DockPanel or FlexTable and then set up diffeent regions and widgets with different fixed (in pixels) or variable(in percentage) sizes.

To make a widget fill a cell of a table, sets its size to 100% x 100% using the property pane.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests