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

CSS properties re-calculated when copied #5

Open
jasonm opened this issue Feb 28, 2014 · 0 comments
Open

CSS properties re-calculated when copied #5

jasonm opened this issue Feb 28, 2014 · 0 comments

Comments

@jasonm
Copy link

jasonm commented Feb 28, 2014

I noticed that if my textarea has font-size: 10pt that this is converted to font-size: 13px on the div.textoverlay.

My textarea also has a line-height, so I updated the var textareaToOverlay to include line-height. However, the calculated line-height which was applied to the div.textoverlay was 20px, instead of 13px * 1.5 = 19.5px, which causes overlays to become misaligned when they are further down in the textarea.

Is it possible for getStyles to maintain the original units of the CSS properties it copies?

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

1 participant