Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352935 - [Table] Buffer text width of table items
Summary: [Table] Buffer text width of table items
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-23 12:54 EDT by Rüdiger Herrmann CLA
Modified: 2011-07-24 17:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-07-23 12:54:46 EDT
As a preparation for bug 346768, table items should buffer width for their respective texts.
Comment 1 Rüdiger Herrmann CLA 2011-07-23 13:41:34 EDT
The 'Data' data structure was extended to additionally hold the text width. The text width is calculated when asked for for the first time and then buffered. It is reset to 'unknown' when either text or font changes.
Changes are in CVS HEAD.
Comment 2 Ivan Furnadjiev CLA 2011-07-24 03:26:51 EDT
Rüdiger, what are the chance to buffer the "estimated" text width instead of "real" one? Maybe clear the buffer in resize listener will help in this case.
Comment 3 Rüdiger Herrmann CLA 2011-07-24 17:17:49 EDT
Ivan, thanks for double-checking! I followed your suggestion, the buffered text width is invalidated when the table is resized.