Skip to main content

Notifications

TextInput: Configuring Auto-Height

Brian Dang Profile Picture Posted 24 Mar 2018 by Brian Dang 3,976

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

  • Brian Dang Profile Picture Brian Dang 3,976
    Posted 29 Mar 2018 at 04:00:31
    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 925
    Posted 24 Mar 2018 at 20:32:15
    TextInput: Configuring Auto-Height

    @mr-dang

     

    That's pretty slick!