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

Bug 162090

Summary: ScrollBarLayout hides thumb figure too soon
Product: [Tools] GEF Reporter: Randy Hudson <hudsonr>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2006-10-24 11:00:12 EDT
ScrollBarLayout positions thumb figure inside the "track" area.
The thumb should be visible any time the avialable space is >= to the thumb's minimum size. The current condition incorrectly tests for >.

The result is that the Scrollbar has a void in the middle at certain small sizes. This void is where the visible thumb should be placed.

On another note, I have not tested what happens when the scrollbar gets even smaller than required to show the thumb. To avoid it still having a hole its middle, it should position the pagedown and possible pageup figures in the track area.
Comment 1 Alexander Nyßen CLA 2014-08-09 05:11:46 EDT
Changing this condition has a very slight effect, as the void will still appear in case the available space is smaller than the thumb's minimum size. If we change the condition as outlined here, the thumb will be "unmovable" in case its minimum size fits exactly the available track area, which does IMHO not feel as natural as the current behavior. If clients want to tweak the behavior, they can overwrite ScrollBarLayout. As such, resolving this as WORKSFORME.