Skip to content
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

Title with useHTML flag - doesn't resize #3481

Closed
pawelfus opened this issue Oct 2, 2014 · 4 comments
Closed

Title with useHTML flag - doesn't resize #3481

pawelfus opened this issue Oct 2, 2014 · 4 comments

Comments

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Oct 2, 2014

Example: http://jsfiddle.net/sq12r17w/3/

Steps:

  • resize chart to smaller one
  • resize chart back to the initial size

Result: chart's title isn't resized. Without useHTML flag it works properly.

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Oct 2, 2014

Workaround:
set width:100%!important on .highcharts-title element.

Demo: http://jsfiddle.net/sq12r17w/4/

@ChartHeaven
Copy link

@ChartHeaven ChartHeaven commented Oct 3, 2014

Ok, the suggested CSS workaround works but the title text won't stay centered anymore and it overlaps the exporting button when resizing to smaller resolution. The title also overlaps the chart if it doesn't fit in the top margin.

http://jsfiddle.net/sq12r17w/6/

@pawelfus
Copy link
Contributor Author

@pawelfus pawelfus commented Oct 3, 2014

It will overlap, because you set marginTop - remove that option and should work.

@ChartHeaven
Copy link

@ChartHeaven ChartHeaven commented Oct 7, 2014

I removed it but it's still overlapping when resizing. Or is this expected as HTML title area cannot be properly aligned with rest of the SVG content?

http://jsfiddle.net/sq12r17w/7/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants