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

Bug 349019

Summary: MULTI Text with WRAP has an error in its computeSize
Product: [Eclipse Project] Platform Reporter: Michael Seele <mseele>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.4.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: stalebug
Attachments:
Description Flags
Snippet which demonstrates the error none

Description Michael Seele CLA 2011-06-10 08:59:39 EDT
Created attachment 197772 [details]
Snippet which demonstrates the error

This happens under Windows (Windows 7) and Linux (Fedora 12 / RHEL 5 & 6) with swt 3.7RC4:

- run the attached snippet, which shows a MULTI Text with WRAP
 -> its contents wrap to two lines
- but the computeSize() line indicates that it should fit on one line (wrong)
- this failure occurs within some range of what should be the correct answer,
because if you change WIDTH to the value OK then computeSize will correctly
indicate that two lines are needed to show the text


(might be a duplicate of #147909)
Comment 1 Michael Seele CLA 2014-10-16 07:25:59 EDT
The bug still exists in swt 4.4.1
Comment 2 Eclipse Genie CLA 2020-03-16 10:32:46 EDT
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.