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

Fix font-size calculation if font-family's differ #2

Merged
merged 1 commit into from Oct 6, 2011

Conversation

melo
Copy link
Contributor

@melo melo commented Oct 5, 2011

If the original DOM element and the copy DOM element have very different
font-family's, this calculation could be way off, and generate a very big
overlay.

By using the copy's width and height we do the calculation with
the final font-family and assure that its always good.

If the original DOM element and the copy DOM element have very different
font-family's, this calculation could be way off, and generate a very big
overlay.

By using the copy's width and height we do the calculation with
the final font-family and assure that its always good.
@tatey
Copy link
Owner

tatey commented Oct 5, 2011

Good pickup. Thanks for the patch!

tatey added a commit that referenced this pull request Oct 6, 2011
Fix font-size calculation if font-family's differ
@tatey tatey merged commit f379513 into tatey:master Oct 6, 2011
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

Successfully merging this pull request may close these issues.

None yet

2 participants