In a list field, if you are scrolling a field by script control, the max vertical scroll to display the last line would be:

put (the height of me - the topMargin of me - the bottomMargin of me) into tAdjustedHeight -- tope and bottom margins if the showBorder of me is true then put tAdjustedHeight - (the borderWidth of me * 2) into tAdjustedHeight -- top and bottom borders
the formattedHeight of me - tAdjustedHeight into tMaxVerticalScroll

-- essentially you have to take the formattedHeight minus the field height and subtract out the margins and borders (if there are borders shown)

Is this correct? Am I missing anything?

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to