calebjacob / tooltipster

A jQuery tooltip plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotation including HTML br or CSS display: block; for the first word in line is displayed at the opposite end

nevenjovanovic opened this issue · comments

When annotations are styled as HTML, and includes a br element (or CSS display: block;), the annotation of the first word (in lines other than the first one in div or p!) is displayed at completely the opposite end of the line, too far from its word. It is not so for other words in line.
The problem goes away when br or display:block formatting is removed from annotation.
See a working example here: http://croala.ffzg.unizg.hr/grcgram/test.html
JQuery 1.10.0, tooltipster v4.2.7.

I see no issue using Chrome. I suspect that what you think is abnormal is the exepected behavior when you use display-block elements. Use inline or inline-block elements only. Thank you