ivirabyan / jquery-mentions

Adds mentioning support to your text fields.
http://ivirabyan.github.io/jquery-mentions/
MIT License
114 stars 49 forks source link

Highlighter must sync its size to textarea on focus #16

Closed ivirabyan closed 8 years ago

mattlacey commented 9 years ago

Does this cause the highlighter to be only a few pixels high at times? Checked the styling and height was 0 after I inserted a mention, temporarily fixed with "min-height: 2em;".

My textarea is not visible when the plugin is initialised.

ivirabyan commented 9 years ago

It might be, I don't remember the problem behind this. What browser you use?

ivirabyan commented 9 years ago

Just noticed that your textarea is not visible upon initialization. That's the root of the problem. You should initialize the plugin once the textarea is visible, otherwise highlighter may not work correctly (since it tries to mimic appearance of the textarea).

mattlacey commented 9 years ago

Ah ok, that makes sense, will try and get that sorted out! It's a great plugin, working really well for my use case!

ivirabyan commented 9 years ago

Thanks for the feedback

realdem commented 8 years ago

I also have trouble with my highlighter, but it's acting differently. It moves the background-of-the-box upward. I made a new issue page for this. I'm also letting you know, here as well. Here's my issue

ivirabyan commented 8 years ago

Closing as non relevant anymore