6 Is A Mystery Number

J. Landman Gay jacque at hyperactivesw.com
Sun Feb 19 00:25:07 EST 2012


On 2/17/12 11:05 PM, Scott Rossi wrote:
> The answer to life may be 42, but my question is: "6?"
>
> The setup: I create a new scrolling field, fill it with a bunch of text, and
> drag the scrollbar all the way down, setting the field to its max vertical
> scroll.  When I compare the formattedHeight of the field minus its physical
> height with the current vscroll of the field, I get a difference of 6. The
> vscroll of the field is consistently 6 pixels less. Where does this value
> come from?
>
> No changes to margins, border, textHeight, or other visual properties seems
> to have any bearing on this difference.  Oddities like these make it
> difficult to reliably interact with LC controls.

Not a clue. Could it be due to the focusborder? We can toggle the 
visibility, but the engine may still be counting it whether it is 
showing or not.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list