-
Notifications
You must be signed in to change notification settings - Fork 257
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
Problem when using maxfontsize #62
Comments
Interestingly if I comment out the following 4 lines it seems to work fine: if(newFontSize + j*intervals[m] > maxFontSize) {
newFontSize = maxFontSize;
break outer;
} Can anyone tell me what problems removing that code is likely to cause? |
Can you try again with 0.1.8? I changed some of the resize logic. |
I'm using 0.1.8 and I am having the same issue. Commenting out the same 4 lines that skmbr mentioned above fixed the issue for me. |
Confirm, commenting those lines fixed the issue. |
I can confirm. I added some logging by moving this
Here's another run commenting those lines out but keeping
Notice in the working case it tries 99, and then resizes back down. My maxwidth is 560px. |
Hi there!
I'm having a problem when using maxfontsize and resizing the screen to the point at which the font size should start to reduce.
http://jsfiddle.net/bcs9t5ss/
When I resize the preview window, the font doesn't start to resize until the window is ~20px smaller than the text. As I continue to reduce the size of the window the font size judders for the next ~20px before the font then starts to reduce in size more smoothly.
Video: http://quick.as/Zm66F7jx
This is using Chrome 37 on OS X Mavericks. In Safari and Firefox the behaviour is similar, but less jerky.
The text was updated successfully, but these errors were encountered: