Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332931 - [Toolbar] does not wrap
Summary: [Toolbar] does not wrap
Status: RESOLVED DUPLICATE of bug 223914
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 06:11 EST by Bogdan B. CLA
Modified: 2010-12-20 06:28 EST (History)
1 user (show)

See Also:


Attachments
Snippet (1.78 KB, text/x-java)
2010-12-20 06:13 EST, Bogdan B. CLA
no flags Details

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