Tooltip padding for 2 rows calculated wrong #5932

Closed
HACKHERS opened this Issue Nov 4, 2016 · 3 comments

Projects

None yet

3 participants

@HACKHERS
HACKHERS commented Nov 4, 2016

Expected behaviour

When using pointFormat for tooltips, if you set they font size other than you set in style option. Space between 2 rows needs to be enough. (Not expecting overflow)

Actual behaviour

But it totally messes up. For in your own examples for activity gauge when you set the fontsize 32 you can see the problem.

Live demo with steps to reproduce

http://jsfiddle.net/Hackhers/h8177x85/

Affected browser(s)

Google Chrome

@jon-a-nygaard
Collaborator

Hi @HACKHERS thanks for reporting. This seems to be something that goes wrong with calculations of em values. It looks like it works fine using px values like this, which may be a possible workaround for you.

Internal Note: Look into SvgRenderer.fontMetrics. Simplified demo

@jon-a-nygaard jon-a-nygaard added the Bug label Nov 7, 2016
@HACKHERS
HACKHERS commented Nov 7, 2016

Hi @jon-a-nygaard thanks for clarification, after opening issue I tried that too. It looks like much more space between serie name and point y. The example is over here. Is there anyway around this ?

@TorsteinHonsi
Collaborator

Demo reduced to the renderer: http://jsfiddle.net/highcharts/rw86v1jb/

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