I believe it is this: (The formattedheight of field "myField1") - (the height of field "myfield1")
However, you may also need to adjust for a horizontal scrollbar and/or the thickness of the border of the field. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Sheffield Sent: Friday, May 20, 2005 3:19 PM To: How to use Revolution Subject: calculating max vscroll Does anyone have a function that will calculate the maximum amount a field can scroll if its height is too small to display it's entire contents at once? (did that make sense; it's been a long day and I have a headache :-)) Problem is I have a couple fields that I'm scrolling together, and for some reason one is scrolling slightly more than the other, which makes things slightly misaligned. The main field contains regular text (this is the one that scrolls slightly more for some reason), and the other field contains bullets that should line up with the text in the main field (much like the breakpoint list toggle column in the Rev script editor). I thought if I could calculate the maximum vscroll, I should be able to limit them so they stay together exactly. But unfortunately I'm having a hard time figuring out how to do that. Both fields are set to use the same font and size and have the same textHeight value. Thanks for the help, Chris ------------------------------------------ Chris Sheffield Read Naturally The Fluency Company http://www.readnaturally.com ------------------------------------------ _______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
