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

Bug 326085

Summary: [Forms] Last lines of lengthy context-sensitive help garbled
Product: [Eclipse Project] Platform Reporter: Richard Butner <rbutner>
Component: User AssistanceAssignee: Chris Goldthorpe <cgold>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cgold, samuelwu
Version: 4.1   
Target Milestone: 3.7 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Cshelp window where last two lines are garbled
none
Same cshelp window resized and now displayed normally
none
RPT 8.2 (released) cshelp for schedules, built .xml file from plugin .jar file
none
Patch none

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. ***