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

Bug 368993

Summary: Label with size hint {0, 0} layouted to {64, 64}
Product: [Eclipse Project] Platform Reporter: Curtis Windatt <curtis.windatt.public>
Component: SWTAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, eclipse.felipe, gheorghe, markus.kell.r, Michael_Rennie
Version: 3.8   
Target Milestone: 3.8 M6   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Screenshot of dialog with space none

Description Curtis Windatt CLA 2012-01-18 12:08:48 EST
Created attachment 209694 [details]
Screenshot of dialog with space

Version: 4.2.0
Build id: I20111230-1130
Ubuntu linux.  

Resizing the wizard dialog does not change the excess space in the layout.  See the attached screenshot.

Mike reports the same issue using a more recent build in Linux Mint I20120117-2200
Comment 1 Markus Keller CLA 2012-01-18 14:45:27 EST
The fix for bug 351494 in Control#computeNativeSize(..) has caused this bug.

To leave some space in the GridLayout, we create an empty Label with hHint=0. At the end of computeNativeSize(..), the width and height get wrongly set to 64. They must stay at 0 in this case.
Comment 2 Markus Keller CLA 2012-01-26 05:49:44 EST
Bug 357559 fixed a similar problem in ToolBar, but Control#computeSize(..) is still broken for other kinds of controls.