how to check/set "rootPanel" dimensions in Design

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

how to check/set "rootPanel" dimensions in Design

Postby peterblazejewicz » Wed Sep 12, 2007 3:16 pm

Hi all,

I need to have constrained "rootPanel" dimensions and I want that to be done via design view without using CSS. I can resize "rootPanel" but I cannot see any widget in project which shows what are dimensions of such scaled view.
It seems that properties (size: width/height) for rootPanel are not applicable to design mode viewport size,

thanks,
regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Konstantin.Scheglov » Wed Sep 12, 2007 8:44 pm

You can set size of UIObject using setSize() method, however for RootPanel setSize() is ignored, because RootPanel is practically browser window (in most cases).

What do you mean by "constrain dimensions"?
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Postby peterblazejewicz » Thu Sep 13, 2007 10:57 am

hi Konstantin,
thanks for answer,
Maybe I wasn't clear enough in my question:
I want to know how I can check what are "root panel" dimensions in Design view when changed via mouse using resize handles. I don't want to use any UIObject/WIdget methods for that, only mouse (or keyboard) operations that are available wihint Design view.
Whenever I scale design canvas by mouse it is resized but no properties are changed (maybe that's good) but at least something like "designer" canvas view width/height should be somehow visible,

What I'm doing is changing canvas size within "Design" view to check if it fits various devices screen areas (e.g. iPhone vertical/landscape view dimensions),

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Konstantin.Scheglov » Thu Sep 13, 2007 9:48 pm

Ok, now I understand.

Now, in new build, Designer will show new size and resize delta when you will resize top level component (for example RootPanel) using mouse.
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Postby Eric Clayberg » Fri Sep 14, 2007 11:17 am

Here's what it looks like...

Image
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 peterblazejewicz » Fri Sep 14, 2007 12:02 pm

Hello Eric,
exactly!
I hope you're seeing how imporant and usefull that feature could be :D

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Fri Sep 14, 2007 1:52 pm

peterblazejewicz wrote:I hope you're seeing how imporant and usefull that feature could be

Yes. That is why we added it. ;-)

We always welcome good ideas and try to implement them quickly.
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 peterblazejewicz » Sun Sep 16, 2007 6:12 pm

just for others:
tested as working with build [20070916122140]
regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby peterblazejewicz » Wed Sep 19, 2007 4:13 pm

hi,
for others: I've found that Designer "General" settings panel contains default dimensions for generated viewport size (a.k.a form in swt/swing).
So i could also change those settings when starting new project and it will be applied to every new view created in designer,
http://download.instantiations.com/Desi ... neral.html

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Wed Sep 19, 2007 6:27 pm

Here's a screen shot...

Image
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