On 5/20/12 1:19 PM, Peter Haworth wrote:
That doesn't work.  If I'm understanding it correctly, it scrolls so the
the middle line in the total number of lines in the list is at the top of
the list.  What I need is for the selected line to be positioned in the
middle of the VISIBLE lines in the list, not the total lines.

The formattedheight should return only the height of the visible lines. As far as the engine knows, the lines that aren't in the field yet don't exist.

Try div 3 instead of div 2. That should set the scroll so that a third of the text is off the top, a third is in the middle, and the bottom third trails below.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
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