Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365337 - StyledText line wrap sometimes cuts off words if inside FillLayout with margins
Summary: StyledText line wrap sometimes cuts off words if inside FillLayout with margins
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 11:56 EST by Nam Quang Tran CLA
Modified: 2019-11-27 07:24 EST (History)
0 users

See Also:


Attachments
Snippet (2.50 KB, text/x-java)
2011-12-01 11:57 EST, Nam Quang Tran CLA
no flags Details
Screenshot (15.45 KB, image/png)
2011-12-01 11:58 EST, Nam Quang Tran CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Quang Tran CLA 2011-12-01 11:56:50 EST
Build Identifier: 

When a StyledText with WRAP style is inside a Composite with FillLayout, and the FillLayout has margins, the line wrapping will sometimes cut off words at the end. This bug disappears if no margins are set on the FillLayout. Tested on Windows XP and Ubuntu with SWT 3.7.

Reproducible: Always

Steps to Reproduce:
See snippet and screenshot.
Comment 1 Nam Quang Tran CLA 2011-12-01 11:57:43 EST
Created attachment 207798 [details]
Snippet
Comment 2 Nam Quang Tran CLA 2011-12-01 11:58:16 EST
Created attachment 207799 [details]
Screenshot
Comment 3 Nam Quang Tran CLA 2011-12-02 05:00:43 EST
I found out that the bug disappears if the FillLayout is replaced by a GridLayout (with the same margins).
Comment 4 Lars Vogel CLA 2019-11-27 07:24:31 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.