Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 425587

Summary: [Composite] computeSize differs from SWT
Product: [RT] RAP Reporter: Claudio Guglielmo <claudio.guglielmo>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.2   
Target Milestone: 2.3 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Claudio Guglielmo CLA 2014-01-13 12:02:42 EST
We use a custom layout manager, which may return 0px for height and width. Unfortunately Composite.computeSize overwrites those values with a default of 64px. But only in RWT. ComputeSize of SWT also knows those default values but only uses them if no layout is set. If there is a layout set the values are returned untouched.

We use Rap 2.2 and SWT 3.7. I haven't checked other SWT versions.

Has this been changed by purpose?
Comment 1 Ivan Furnadjiev CLA 2014-01-14 06:37:00 EST
Mistakenly, the reset to default width/height (in case of zero) was moved out of the else branch in Composite#computeSize.
Comment 2 Ivan Furnadjiev CLA 2014-01-14 07:26:12 EST
Fixed with change https://git.eclipse.org/r/20605