Skip to main content

Notifications

TextInput: Configuring Auto-Height

Brian Dang Profile Picture Posted by Brian Dang 4,009

Configure an auto-height property for controls that don't have it.

 

Remix it!:
https://1drv.ms/u/s!AvtvG5BA8E3vj7ZW09dR3q1-d-MpUQ

 

Follow me on Twitter: @8bitclassroom
Read my blog: https://8bitclassroom.com/
Find me on Facebook: https://www.facebook.com/8bitclassroom/
Subscribe to my YouTube channel 🙂

Categories:

Comments

*This post is locked for comments

  • Brian Dang Profile Picture Brian Dang 4,009
    Posted at
    TextInput: Configuring Auto-Height

    Thanks @ThatAPIGuy--it is a neat workaround. In the past I would try to calculate how many pixels wide each letter was, but it was not very precise. I think I have an example of that kind of mechanism inside my Fake Text generator.

  • ThatAPIGuy Profile Picture ThatAPIGuy 927
    Posted at
    TextInput: Configuring Auto-Height

    @mr-dang

     

    That's pretty slick!