android compute field height

Mike Kerner MikeKerner at roadrunner.com
Tue Jun 20 09:15:33 EDT 2023


is there a formula to compute what the height of a textInput area
should be on android, based on the font size?
there isn't an autoFit, and there does not seem to be a simple formula to use.
i'm computing what the height "should be" based on whether a scroll
bar is rendered
example:
14 point -> 37 px
18 point -> 43 px
24 point -> 51 px
30 point -> 59 px


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list