android compute field height

Tom Glod tom at makeshyft.com
Fri Jun 23 19:35:35 EDT 2023


Android font rendering is the stuff of nightmares.
Important things to remember:
The smaller the font the less control you have over how it renders in the
field.
it helps to have showborder OFF
and it helpts to manually set the margins for each side. 4,4,4,4 instead of
4.
You can probably wrestle it into submission.
Probably.
Good luck.



On Tue, Jun 20, 2023 at 9:17 AM Mike Kerner via use-livecode <
use-livecode at lists.runrev.com> wrote:

> 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."
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list