-
Notifications
You must be signed in to change notification settings - Fork 332
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
Highlighting doesn't line up on the text entered #29
Comments
@atwskris Try to apply the SAME CSS rules as for your textarea, meaning:
and whatever you think that may conflict! |
Sorry for the late comment, but ... The plugin generates a <div> before the <textarea> - this <div> probably inherits font, line-height, etc. from <body> Use Chrome developer tools to inspect the DOM & CSS styling at runtime - you'll see what happens |
I was able to fix this by altering elastic.js to take the padding of the textarea in to account. Line 58: lineHeight = (parseInt($textarea.css('line-height'),10) || parseInt($textarea.css('font-size'),'10')) + parseInt($textarea.css('paddingTop')), |
Great. I'm going to test it and modified the files! |
Starting to type a mention works fine, but after I select the mention the highlight is up and to the left.
The highlight follow the mention text but it is not on top of it as expected.
I tried the the same CSS applied to the textareas on the example site.
Tested in IE8+ and Chrome ... Ideas?
Thanks
K
The text was updated successfully, but these errors were encountered: