Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368993 - Label with size hint {0, 0} layouted to {64, 64}
Summary: Label with size hint {0, 0} layouted to {64, 64}
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: 3.8 M6   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 12:08 EST by Curtis Windatt CLA
Modified: 2012-01-31 15:57 EST (History)
5 users (show)

See Also:


Attachments
Screenshot of dialog with space (67.07 KB, image/png)
2012-01-18 12:08 EST, Curtis Windatt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.