I would like to have a layer's height be determined by the amount of text inside its html content (given the style of that text). Is there any way to do this? Thanks!
One trick is that when you add some text via the HTML property, it's actually wrapped in a div. You can set it to display: inline-block, and then check its offsetHeight. On mobile and I forget the exact name of the property, but there's a reference to it on your layer object. Something like layer._innerElement or something.
I generally use this: https://github.com/awt2542/textLayer-for-Framer
I do exactly that for my Text module that's available on github.