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 padding for 2 rows calculated wrong #5932

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

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

This comment has been minimized.

Show comment
Hide comment
@jon-a-nygaard

jon-a-nygaard Nov 7, 2016

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

Collaborator

jon-a-nygaard commented Nov 7, 2016

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

This comment has been minimized.

Show comment
Hide comment
@HACKHERS

HACKHERS 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 ?

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

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Nov 7, 2016

Collaborator

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

Collaborator

TorsteinHonsi commented Nov 7, 2016

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