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

Bug 434757

Summary: [Text] Text.setMessage(String) is automatically wrapped and flows out of the widget
Product: [RT] RAP Reporter: Markus Knauer <mknauer>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan, jeick, stefan.schmidt
Version: 2.2   
Target Milestone: 2.3 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot with a long Text Widget hint none

Description Markus Knauer CLA 2014-05-13 10:15:31 EDT
If you have a (small) Text widget and you set a (long) hint via Text.setMessage(String), the hint is automatically wrapped according to the width of the text widget and takes more space vertically than available. I'll attach a screenshot from our demo that illustrates this behaviour: The text flows vertically out of the widget.

This can be reproduced with our controls demo (RAP 2.2 and RAP 2.3M7) at http://rap.eclipsesource.com/demo/release/controlsdemo/controls#Text

- enable "border" flag
- delete pre-filled text from text widget
- set a very long message
Comment 1 Markus Knauer CLA 2014-05-13 10:16:44 EDT
Created attachment 243033 [details]
Screenshot with a long Text Widget hint
Comment 2 Ivan Furnadjiev CLA 2014-05-13 10:46:49 EDT
Pending change - https://git.eclipse.org/r/26453.
Comment 3 Ivan Furnadjiev CLA 2014-05-13 11:22:34 EDT
Change https://git.eclipse.org/r/26453 merged.