Negative offsets not working in 2.0.0?

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

Negative offsets not working in 2.0.0?

Postby bhutten » Sat Apr 03, 2004 4:52 pm

I'm testing the evaluation version of SWTDesignerPro - version 2.0.0, Eclipse 3.0M7, Win2K.

Using FormLayout, I'm unable to enter negative offsets. If I enter a negative number in an offset property field, designer always converts it to 0. Bug?
bhutten
 
Posts: 6
Joined: Mon Sep 01, 2003 1:13 pm

Re: Negative offsets not working in 2.0.0?

Postby Eric Clayberg » Sat Apr 03, 2004 8:06 pm

bhutten wrote:I'm testing the evaluation version of SWTDesignerPro - version 2.0.0, Eclipse 3.0M7, Win2K. Using FormLayout, I'm unable to enter negative offsets. If I enter a negative number in an offset property field, designer always converts it to 0. Bug?

It was a bug, but it was fixed in the current v2.0.0 build available for download.
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 bhutten » Sun Apr 04, 2004 7:53 am

hm. I have version 2.0.0, compiled on 2004.03.31, which I downloaded 30 minutes ago.

It's still exhibiting the same behaviour. I have a blank form, FormLayout, place a button on the form. Set the left numerator to 50, works fine. Then tab to the "offset" field, enter -50, tab out, offset resets to 0. This happens consistently.

I just noticed that the source is updated correctly - if I enter the above values, then switch to the source view, the line is:

formData.left = new FormAttachment(50,-50);

So the source is being generated correctly...but the "offset" widget is not displaying the correct value.

As well, Designer is not rendering negative offsets correctly. Say I have this line:

formData.left = new FormAttachment(50,200);

Designer correctly displays the button with it's left margin 200 pixels to the right of the center line of the form. However, if I have this line:

formData.left = new FormAttachment(50,-200);

Designer incorrectly displays the button with it's left margin exactly at the center line of the form. The negative offset is ignored.
bhutten
 
Posts: 6
Joined: Mon Sep 01, 2003 1:13 pm

Postby Eric Clayberg » Mon Apr 05, 2004 5:08 am

bhutten wrote:hm. I have version 2.0.0, compiled on 2004.03.31, which I downloaded 30 minutes ago.

You need to download the version for Eclipse 3.0 M8 which came out last Friday.

The M7 version is the older version of the beta that contains the bug. The M7 version of the beta will not be updated.
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: No registered users and 1 guest