grouplayout baseline problem

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

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

grouplayout baseline problem

Postby mkleint » Thu Apr 08, 2010 1:36 pm

Hello,

I've kept on experimenting with grouplayout that there seems to be some problems with baseline layouting. It's most obvious on linux but other platforms suffer as well, see the following screenshots:

Linux: http://screencast.com/t/NTQ3MjU1YWYt
mac: http://screencast.com/t/YzhhODg4Y2Et
(I don't have immediate access to a windows machine)

please note that using the same layout in swing/netbeans produces significantly better result
swing mac: http://screencast.com/t/NWFiOGI5ZWQ

is this a known bug? any workaround? already fixed?

Thank you

Milos Kleint

here is the layout code snippet (same in all above mentioned cases)

GroupLayout gl_container = new GroupLayout(container);
gl_container.setHorizontalGroup(
gl_container.createParallelGroup(GroupLayout.LEADING)
.add(gl_container.createSequentialGroup()
.addContainerGap()
.add(label)
.addPreferredGap(LayoutStyle.RELATED)
.add(text)
.add(423))
);
gl_container.setVerticalGroup(
gl_container.createParallelGroup(GroupLayout.LEADING)
.add(gl_container.createSequentialGroup()
.addContainerGap()
.add(gl_container.createParallelGroup(GroupLayout.BASELINE)
.add(label)
.add(text, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addContainerGap(256, Short.MAX_VALUE))
);
mkleint
 
Posts: 14
Joined: Wed Mar 31, 2010 12:17 pm

Re: grouplayout baseline problem

Postby Eric Clayberg » Sun Apr 11, 2010 5:19 am

Please give this a try using the latest SWT Designer v7.4 build.
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: grouplayout baseline problem

Postby mkleint » Sun Apr 11, 2010 12:12 pm

Great!

It works like a charm now in 7.4.0.r35. Thanks a lot.

Milos
mkleint
 
Posts: 14
Joined: Wed Mar 31, 2010 12:17 pm

Re: grouplayout baseline problem

Postby Eric Clayberg » Sun Apr 11, 2010 12:42 pm

Glad to hear it.
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 SWT Designer

Who is online

Users browsing this forum: Google [Bot] and 2 guests