Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370703 - Add support for custom item height in item-based controls
Summary: Add support for custom item height in item-based controls
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-06 06:24 EST by Ivan Furnadjiev CLA
Modified: 2012-02-06 07:03 EST (History)
0 users

See Also:


Attachments

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