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

Tooltip height incorrect if content starts with line break #5261

Closed
nipehe opened this Issue Apr 28, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@nipehe

nipehe commented Apr 28, 2016

Expected behaviour

Formatter either strips line breaks from the start of the string OR displays tooltips with enough height.

Actual behaviour

Line breaks at the start of a tooltip formatter cause the displayed text to have a line break at the beginning (as specified) but tooltip bubble height is too low, causing overflow.

Live demo of the issue

http://jsfiddle.net/j840waqa/

Steps to reproduce the behaviour

  1. Add a tooltip formatter with at least one <br> tag at the beginning

Affected browser(s)

Chrome 49, Firefox 38, IE11

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Apr 29, 2016

Collaborator

Thanks for reporting!

Minimal demo

The bug applies to all labels: http://jsfiddle.net/highcharts/ery8vzfa/

Collaborator

TorsteinHonsi commented Apr 29, 2016

Thanks for reporting!

Minimal demo

The bug applies to all labels: http://jsfiddle.net/highcharts/ery8vzfa/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment