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

Bug 365337

Summary: StyledText line wrap sometimes cuts off words if inside FillLayout with margins
Product: [Eclipse Project] Platform Reporter: Nam Quang Tran <qforce>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: stalebug
Attachments:
Description Flags
Snippet
none
Screenshot none

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.