Community
Participate
Working Groups
Build ID: 3.2.2 Create a scrollbar with e.g. minimum: -50000000 maximum: 50000000 value: 0 The thumb will not be drawn in the middle but over the up arrow button. It cannot be dragged to the middle either.
Created attachment 67973 [details] code example
Would you care to provide a patch to this problem? 50 million is a very large number and well beyond what most GEF clients are trying to display, so this would receive low priority from the GEF team.
Created attachment 76053 [details] Patch to increase range of scrollbar values The location of the scrollbar thumb is currently calculated using integer math. When the integers become too large, overflow causes unpredictable results. This patch increases the range of possible values by replacing the integer math with floating-point calculations and rounding. These floating-point calculations increase the range of possible scrollbar values, but it's questionable whether the increased range is worth the additional processing time.