the formattedHeight of a field
Dar Scott
dsc at swcp.com
Wed Jul 2 15:05:01 EDT 2003
I don't understand this.
I have a field.
the height = 85
the borderWidth = 2
The font is "Courier New", 11 pt, bold
Don't wrap is true.
The htmlText shows no per char formatting.
the fixedLineHeight is true or false
the margins = 8
the showFocusBorder is false
For 10 lines of text I get this:
the formattedHeight ==> 168
the formattedHeight of char 1 to -1 ==> 140
the formattedHeight of char 1 ==> 14
Que Pasa?
168 - 2 - 2 - 8 - 8 = 148
What are the other 8 pixels? The TD says the focus border is counted
in the margins and besides it is off.
Dar Scott
More information about the use-livecode
mailing list