Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 251184 - [Text] Size determination for text containing only blanks is wrong
Summary: [Text] Size determination for text containing only blanks is wrong
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 1.2 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 03:25 EDT by Stefan Röck CLA
Modified: 2009-05-12 11:11 EDT (History)
0 users

See Also:


Attachments
Snippet to reproduce the bug (690 bytes, text/plain)
2008-10-17 03:26 EDT, Stefan Röck CLA
no flags Details
Patch proposal (1.00 KB, patch)
2008-10-20 09:18 EDT, Stefan Röck CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Röck CLA 2008-10-17 03:25:27 EDT
The text size determination for a string which contains one (or more) blanks doesn't work. For those strings the Text widget always has a height > 64 (DEFAULT_HEIGHT).
Comment 1 Stefan Röck CLA 2008-10-17 03:26:58 EDT
Created attachment 115356 [details]
Snippet to reproduce the bug

Enter blank character in text widget and press "layout" button. Entering multiple blanks has the same effect.
Comment 2 Stefan Röck CLA 2008-10-20 09:18:42 EDT
Created attachment 115555 [details]
Patch proposal
Comment 3 Ralf Sternberg CLA 2008-10-21 03:57:56 EDT
Committed slightly modified version of the above patch.