[REBOL] Re: Dynamic scroller step adjustment
From: antonr:iinet:au at: 27-Feb-2004 0:18
ratio is your friend. For example, to set ratio of a vertical scroller vscroll: vscroll/ratio: visible / total-height and here's a cutting, showing how to set the step: ; step = 1 / (total rows - visible rows) use [y][ y: max 0 ((length? list-data) - rows) vscroll/step: either 0 = y [1][1 / y] ; prevent division by zero ] Anton.