Smart GWT layout problems

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

Smart GWT layout problems

Postby Olivercomputing » Thu Apr 29, 2010 9:34 am

I've been testing GWT Designer with Smart GWT and encountering a number of issues. Unfortunately it's difficult to pin down exactly when they happen and what causes them.

However I think I've pinned down at least one particular problem. I am using a GUI design pattern that involves nesting H/VLayouts hierarchically within other H/VLayouts.

I've found that manually changing the GUI-specified drag-resizing of these layouts to a percentage (so that, e.g., two widgets in an HLayout can take up 33%/67% of the total width) sometimes results in no apparent change in the design layout. Looking at the generated code, I noticed that the, e.g., layout.setSize("25%", "100%"), is occurring far downstream of the object ('layout' in this example) creation. Manually moving this to right after object creation fixes the problem. So this appears to be a case where it is important to do certain operations in a specific order.

A related issue is that it would be extremely useful to be able to specify widths/heights in terms of percentages and '*' (remainder) rather than fixed pixel sizes, since these are logical and permissible values for layouts/widget dimensions.

I understand that this process of interpreting the code/generating the code between the editor and the visual designer must be devilishly difficult, but this appears to be a significant problem.
Olivercomputing
 
Posts: 12
Joined: Fri Apr 23, 2010 5:03 pm

Re: Smart GWT layout problems

Postby Eric Clayberg » Fri Apr 30, 2010 1:02 pm

The problem you are seeing appears to be a bug in SmartGWT which we have reported to the SmartGWT author.

We have reviewed the JavaDoc for setHeight() and don't see any mention that it should be invoked first (before for example setDisabled(true)).

We can certainly work around this if we have to be tweaking the code generation to generate the setWidth()/setHeight()/setSize() methods first, but it would be better if the bug we simply fixed in SmartGWT itself.
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

Re: Smart GWT layout problems

Postby sjivan » Wed May 26, 2010 8:35 pm

fyi this is resolved in Smart GWT 2.2
sjivan
 
Posts: 9
Joined: Thu Feb 07, 2008 8:25 am
Location: Boston

Re: Smart GWT layout problems

Postby Eric Clayberg » Thu May 27, 2010 3:57 am

sjivan wrote:fyi this is resolved in Smart GWT 2.2

Very good! Note that SmartGWT 2.2 is the only version that we support in the current GWT Designer version.
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 1 guest