Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 155052 - Text does not correctly compute height with newline
Summary: Text does not correctly compute height with newline
Status: RESOLVED DUPLICATE of bug 86529
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-24 11:23 EDT by Rob Grzywinski CLA
Modified: 2006-10-25 04:04 EDT (History)
0 users

See Also:


Attachments
Example of vertically growing text. (5.49 KB, text/plain)
2006-08-24 11:24 EDT, Rob Grzywinski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Grzywinski CLA 2006-08-24 11:23:16 EDT
Text does not correctly compute its height (via Text.computeSize()) when its width is fixed and a new line is added.  The height of the Text *is* correct when any character is added to that new line.

An example is attached.
Comment 1 Rob Grzywinski CLA 2006-08-24 11:24:31 EDT
Created attachment 48593 [details]
Example of vertically growing text.

- Enter some text.  
- Hit return -- the text will scroll.  
- Enter any character -- the text field will increase in height
Comment 2 Steve Northover CLA 2006-10-25 03:52:07 EDT
The SWT.WRAP style is causing the trouble.  If you get rid of it, your code will work.
Comment 3 Steve Northover CLA 2006-10-25 04:04:36 EDT

*** This bug has been marked as a duplicate of 86529 ***