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

Bug 370703

Summary: Add support for custom item height in item-based controls
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2012-02-06 06:24:16 EST
Currently, the item height (Tree/Table for example) is calculated form the text/image height and the top/bottom padding. In some cases it will be useful to set a fixed custom item height from outside:
- support markup in the items;
- custom native client item height;
This could be achieved by setting the custom item height trough the Control#setData. A new specific constant will be needed - RWT.CUSTOM_ITEM_HEIGHT.
Custom item height will override the calculated one. Example:
table.setData( RWT.CUSTOM_ITEM_HEIGHT, new Integer( 45 ) );
I will suggest to create the implementation on Tree and Table as a start and extend it on the other item-based controls (List, TabFolder...) on request.
Comment 1 Ivan Furnadjiev CLA 2012-02-06 07:03:57 EST
Implemented as described in the bug description. Changes are in CVS HEAD.