You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a widget that can be resized to any size.
I have several lines of text inside it that need to scale when the widget resizes.
One of the text changes constantly ( like stock price)
The issue I see is that when the stock price value is updated (every 5 sec or so) , the text does not resize and appears out of the container.
eg.
``` kjhkj`
{{name}}
{{price}} {{attr1}}
`
The text was updated successfully, but these errors were encountered:
I have tested an interval creating a random number and it works as expected. May be an issue with the font itself. If you highlight the fonts characters do some of the characters overflow the highlight? eg:
If so, you'll have to play around with the compressor value: data-fittext=".9" for instance, or use a font that has proper bounds.
I have a widget that can be resized to any size.
I have several lines of text inside it that need to scale when the widget resizes.
One of the text changes constantly ( like stock price)
The issue I see is that when the stock price value is updated (every 5 sec or so) , the text does not resize and appears out of the container.
eg.
``` kjhkj`
{{name}}
{{price}} {{attr1}}
`
The text was updated successfully, but these errors were encountered: