This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Aditya Narayan
Posted Jun 21 - Read on Facebook

Hi guys, I am working on a chat bot, and was trying to dynamically set the height of the chat bubble, based on the lines of text in the message, but using TextLayer.height property is just giving the height of one line. And using Utils.textSize is also not working, it is giving twice the size of font size for the height, so for font size: 14 it is giving 28 as the height.

What would be the best way to get the height of the text layer, so I can create a chat bubble from it.

Thanks

1 Comments

Sergey Nikishkin

Adaptive bubbles from Антон Карташов (Anton Kartashov). Try to type long text:
https://framer.cloud/pIAYK/

Read the entire post on Facebook