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

Bug 332931

Summary: [Toolbar] does not wrap
Product: [RT] RAP Reporter: Bogdan B. <bbarzu>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: bbarzu
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Snippet none

Description Bogdan B. CLA 2010-12-20 06:11:26 EST
Build Identifier: rap-runtime-1.4.0-M4-20101214-0912

The Toolbar does not wrap (I only tested horizontally) in RAP 1.4M4 using the example from:
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Createtoolbarwraponresize.htm

But it wraps just fine with a RCP/SWT target.

Reproducible: Always

Steps to Reproduce:
For convenience I already created a snipped which I shall attach.

Observations: 
- The output of the snippet shows that the height is not calculated correctly. In RCP size.y=22 is shown as long as the toolbar needs no wrapping, 52 when it should wrap on 2 lines, 82 on 3, ... but in RAP 22 is always shown.
- Further, if you uncomment the line setting the height on 82, than the toolbar is higher, but it still does not wrap.
Comment 1 Bogdan B. CLA 2010-12-20 06:13:14 EST
Created attachment 185525 [details]
Snippet
Comment 2 Ivan Furnadjiev CLA 2010-12-20 06:28:00 EST
.

*** This bug has been marked as a duplicate of bug 223914 ***