Bug 99109 - ComputeSize on Link gives different results when calling two times in a row
Summary: ComputeSize on Link gives different results when calling two times in a row
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 99112
  Show dependency tree
 
Reported: 2005-06-09 04:43 EDT by Dirk Baeumer CLA
Modified: 2005-06-09 15:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2005-06-09 04:43:50 EDT
RC1

I have a Link widgets embeeded in the new Jaba class wizard. The JDT class is
NewClassWizardPage

The text of the link widget is 
"Do you want to add comments as configured in the <a>properties</a> of the
current project?"

When I call computeSize of the link using the following code

System.out.println(29 + " " + 
  children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT) + " " + 
  children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT));

where the Link is the 29th child of a composite I get the following results:

29 Point {408, 13} Point {408, 0}

To reproduce add the following to lines to the end of the createControl in
NewClassWizardPage

Control[] children= composite.getChildren();
System.out.println(29 + " " + children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT)
+ " " + children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT));
Comment 1 Felipe Heidrich CLA 2005-06-09 15:24:50 EDT
fixed in head > 20050609