Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342610 - [Forms] Form heading wraps text unexpectedly
Summary: [Forms] Form heading wraps text unexpectedly
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Chris Goldthorpe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 233093 311065 320640 (view as bug list)
Depends on: 232741
Blocks:
  Show dependency tree
 
Reported: 2011-04-12 12:40 EDT by Matt Mursko CLA
Modified: 2011-04-26 14:42 EDT (History)
6 users (show)

See Also:


Attachments
Code snippet to reproduce the problem (1.53 KB, application/octet-stream)
2011-04-12 12:40 EDT, Matt Mursko CLA
no flags Details
Screenshot showing truncated text (13.88 KB, image/jpeg)
2011-04-12 12:41 EDT, Matt Mursko CLA
no flags Details
Screenshot showing text after resize (6.76 KB, image/jpeg)
2011-04-12 12:41 EDT, Matt Mursko CLA
no flags Details
Patch (3.29 KB, patch)
2011-04-13 19:32 EDT, Chris Goldthorpe CLA
no flags Details | Diff
Updated patch (3.06 KB, patch)
2011-04-14 14:24 EDT, Chris Goldthorpe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***