Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326085 - [Forms] Last lines of lengthy context-sensitive help garbled
Summary: [Forms] Last lines of lengthy context-sensitive help garbled
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Chris Goldthorpe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 338943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-23 13:59 EDT by Richard Butner CLA
Modified: 2011-03-04 17:05 EST (History)
2 users (show)

See Also:


Attachments
Cshelp window where last two lines are garbled (27.77 KB, image/png)
2010-11-12 08:21 EST, Richard Butner CLA
no flags Details
Same cshelp window resized and now displayed normally (27.25 KB, image/png)
2010-11-12 08:22 EST, Richard Butner CLA
no flags Details
RPT 8.2 (released) cshelp for schedules, built .xml file from plugin .jar file (41.47 KB, text/xml)
2010-11-12 13:45 EST, Richard Butner CLA
no flags Details
Patch (1.27 KB, patch)
2010-11-15 18:50 EST, 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 Richard Butner CLA 2010-09-23 13:59:04 EDT
Build Identifier: I20100608-0911

For long context-sensitive (F1) help entries, where a scroll bar is displayed on the help window, if you scroll to the bottom of the window, the last two lines of context-sensitive help are often displayed on top of each other. Thus, the last two lines are unreadable. This problem is also dependent on the width of the help window. If you resize the help window horizontally to make it wider or narrower, the text will shift back and forth between being displayed correctly and incorrectly.

Reproducible: Always

Steps to Reproduce:
1. Open context-sensitive help that is so long that a scroll bar is displayed in the help window.
2. Scroll to the bottom of the help window.
3. Grab the control on the side of the help window and move it back and forth to make the window wider or narrower.
Comment 1 Chris Goldthorpe CLA 2010-11-11 21:27:53 EST
Can you attach a screen shot?
Comment 2 Richard Butner CLA 2010-11-12 08:21:32 EST
Created attachment 182989 [details]
Cshelp window where last two lines are garbled
Comment 3 Richard Butner CLA 2010-11-12 08:22:14 EST
Created attachment 182990 [details]
Same cshelp window resized and now displayed normally
Comment 4 Chris Goldthorpe CLA 2010-11-12 12:37:20 EST
Thanks for the screenshots. Can you also attach a contexts.xml file which includes that context information?
Comment 5 Richard Butner CLA 2010-11-12 13:45:25 EST
Created attachment 183026 [details]
RPT 8.2 (released) cshelp for schedules, built .xml file from plugin .jar file
Comment 6 Chris Goldthorpe CLA 2010-11-12 18:23:49 EST
I can reproduce the problem using the attached contexts file and the context ScheduleOptions_UserLoad on Win XP.
Comment 7 Chris Goldthorpe CLA 2010-11-15 18:50:12 EST
Created attachment 183177 [details]
Patch

The problem was occurring in Paragraph.computeRowHeights(). After looping through the segments hloc.collectHeights() sets the height of the row to hloc.rowHeight. If the last ParagraphSegment was a BreakSegment hloc.rowHeight() gets set to zero and two rows get printed in the same location.
Comment 8 Chris Goldthorpe CLA 2010-11-15 18:52:24 EST
Patch applied to HEAD, Fixed
Comment 9 Chris Goldthorpe CLA 2010-11-15 19:00:37 EST
A workaround is to eliminate any white space between the end of the description text and the end tag </description> in the contexts file.
Comment 10 Chris Goldthorpe CLA 2011-03-04 17:05:02 EST
*** Bug 338943 has been marked as a duplicate of this bug. ***