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

Bug 342610

Summary: [Forms] Form heading wraps text unexpectedly
Product: [Eclipse Project] Platform Reporter: Matt Mursko <mmursko>
Component: User AssistanceAssignee: Chris Goldthorpe <cgold>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: cgold, eclipse.felipe, james.rantanen, mbarkhou, nsand.dev, remy.suen
Version: 4.1   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 232741    
Bug Blocks:    
Attachments:
Description Flags
Code snippet to reproduce the problem
none
Screenshot showing truncated text
none
Screenshot showing text after resize
none
Patch
none
Updated patch none

Description Matt Mursko CLA 2011-04-12 12:40:05 EDT
Build Identifier: 20100218-1602

The form heading unexpectedly wraps heading text.  A code snippet will be attached that defines a basic editor with a short form heading text string.  When the editor is first displayed, there is a generous amount of horizontal space, more than sufficient to display the entire string, however, the last word form heading text appears to be truncated.  If the editor is resized horizontally (shrunk), the last word of the form heading text will appear on the second line of the header.

Incidentally, some longer heading text strings do not exhibit this problem.


Reproducible: Always

Steps to Reproduce:
Display the editor defined by the attached code snippet.  The last word form heading text appears to be truncated.
When the editor is resized horizontally (shrunk), the last word of the form heading text will appear on the second line of the header.
Comment 1 Matt Mursko CLA 2011-04-12 12:40:46 EDT
Created attachment 193070 [details]
Code snippet to reproduce the problem
Comment 2 Matt Mursko CLA 2011-04-12 12:41:19 EDT
Created attachment 193071 [details]
Screenshot showing truncated text
Comment 3 Matt Mursko CLA 2011-04-12 12:41:43 EDT
Created attachment 193072 [details]
Screenshot showing text after resize
Comment 4 Chris Goldthorpe CLA 2011-04-12 16:20:34 EDT
This seems to be a variant of Bug 232741. I will follow up on that bug to see if there is any progress.
Comment 5 Chris Goldthorpe CLA 2011-04-13 19:32:44 EDT
Created attachment 193209 [details]
Patch

Although the root cause is in SWT it's possible to code around the bug in org.eclispe.ui.forms. Here is a patch which does that.
Comment 6 Chris Goldthorpe CLA 2011-04-14 13:47:47 EDT
Patch committed to HEAD, Fixed
Comment 7 Chris Goldthorpe CLA 2011-04-14 14:24:16 EDT
Created attachment 193280 [details]
Updated patch

These are the changes that were applied to HEAD.
Comment 8 Chris Goldthorpe CLA 2011-04-14 14:26:28 EDT
*** Bug 233093 has been marked as a duplicate of this bug. ***
Comment 9 Chris Goldthorpe CLA 2011-04-18 17:10:04 EDT
*** Bug 320640 has been marked as a duplicate of this bug. ***
Comment 10 Chris Goldthorpe CLA 2011-04-26 14:42:44 EDT
*** Bug 311065 has been marked as a duplicate of this bug. ***