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

Bug 368861

Summary: ExpandableComposite failed to compute right wrapped client size
Product: [Eclipse Project] Platform Reporter: Arnaud <ademuyser>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=516815
Whiteboard: stalebug
Attachments:
Description Flags
Test case to reproduce issue. none

Description Arnaud CLA 2012-01-17 13:16:47 EST
Build Identifier: 3.6.2 M20110210-1200

I create a wrapped Label as child of a composite, client of ExpandableComposite.
A Shell contains ExpandableComposite, the size of shell is computed as below:
   Point sz = shell.computeSize( 100, SWT.DEFAULT, true );
   sz.y = Math.max( sz.y, 500 );
   shell.setSize( sz );

When shell is displayed, the width is 100, and height is enough to have wrapped label displaying full text.
But, the expandableComposite height (or it's client), is not enough to display label => part of label's text is hidden. 

Reproducible: Always
Comment 1 Arnaud CLA 2012-01-17 13:18:04 EST
Created attachment 209636 [details]
Test case to reproduce issue.
Comment 2 Eclipse Genie CLA 2020-08-05 12:06:19 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.