Dialog Size differs at runtime

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

Dialog Size differs at runtime

Postby shafferg » Thu Jan 15, 2009 2:02 pm

At runtime, when I show a DialogBox I created using the designer, I noticed that the DialogBox's size has been shrunk down to fit the size of the inner widgets, ignoring the sizing of nested panels and even the size I assigned to the DialogBox by dragging. I was hoping to see the DialogBox display with the size I had set in the Designer, which is properly reflected with the "Test Designer Window".

Is there something I need to do in order to have my runtime version of the DialogBox reflect what I created in the Designer?

Posts: 1
Joined: Thu Jan 15, 2009 12:17 pm

Re: Dialog Size differs at runtime

Postby Eric Clayberg » Fri Jan 16, 2009 11:00 am

A feature/bug(?) of DialogBoxes in GWT is that they ignore the size you give them and always adjust their size to the size of their children.

If you explicitly set the size of the child (in the property pane), the DB should reflect that size at runtime.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
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 2 guests