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

Bug 353506

Summary: clicking horizontal scrollbar let's you leave a fixed width gantt chart (H_SCROLL_FIXED_RANGE)
Product: z_Archived Reporter: Peter Hermsdorf <peter.hermsdorf>
Component: NebulaAssignee: Laurent CARON <laurent.caron>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: laurent.caron
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://github.com/eclipse/nebula/pull/113
Whiteboard:
Attachments:
Description Flags
bugfix for horizontal scroll issue none

Description Peter Hermsdorf CLA 2011-08-01 10:46:44 EDT
Build Identifier: cvs HEAD

when clicking the horizontal scroll bar thumb (ends up in page up & page down events) the size and positioning calculation in class org.eclipse.nebula.widgets.ganttchart.HorizontalScrollbarHandler does not calculate correctly.
You are able to scroll unlimited in the past (ie.to the left) in the gantt chart even if style GanttFlags.H_SCROLL_FIXED_RANGE is set.

Reproducible: Always

Steps to Reproduce:
1. open GanttTester
2. enable "random event length" on the right ("Fixed H-Scrollbar" is enabled by default) 
3. click on Create button
4. scroll all the way to the right by dragging the horizontal scrollbar thumb to the rightmost position
5. scroll to the left by clicking on the horizontal scrollbar "left of the thumb".

the size and position of the thumb is incorrect and you can scroll to the left as far as you want. 
It should stop near the first event in the gantt chart.
Comment 1 Peter Hermsdorf CLA 2011-08-01 10:49:21 EDT
Created attachment 200658 [details]
bugfix for horizontal scroll issue

we made some test with other styles that H_SCROLL_FIXED_RANGE, but correct behavior should be checked
Comment 2 Laurent CARON CLA 2019-09-08 15:33:39 EDT
Bug fixed in Nebula 2.3.0
(Patch developped by Peter Hermsdorf applied and tested)
Comment 3 Peter Hermsdorf CLA 2019-09-10 01:49:03 EDT
Thanks Laurent!

Great that you finally fixed that Bug.

Bye Peter
Comment 4 Laurent CARON CLA 2019-09-10 03:17:01 EDT
Hi Peter

Happy that you enjoyed it ;)