Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resizing of dynamic text - does not work when data changes constantly #52

Open
nehaverma8 opened this issue May 25, 2016 · 4 comments
Open

Comments

@nehaverma8
Copy link

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}}

`

@patrickmarabeas
Copy link
Owner

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:
screen shot 2016-05-26 at 11 58 28 am

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.

@danielcha
Copy link

danielcha commented Jun 4, 2016

I have the same issue. Resizing the screen resizes te text perfectly, however when the text is changed dynamically it's not being updated

Edit: I hacked it using this trick #46 (comment)

@patrickmarabeas
Copy link
Owner

Nice one. I'll follow up on this as soon as I can.

@patrickmarabeas
Copy link
Owner

@danielcha any chance you can make a codepen demonstrating the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants