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

Comments

Projects
None yet
3 participants
@pawelfus
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@sebastianbochan

sebastianbochan Oct 2, 2014

Contributor

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

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

Contributor

sebastianbochan commented Oct 2, 2014

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

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

@ChartHeaven

This comment has been minimized.

Show comment
Hide comment
@ChartHeaven

ChartHeaven 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/

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

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Oct 3, 2014

Contributor

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

Contributor

pawelfus commented Oct 3, 2014

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

@ChartHeaven

This comment has been minimized.

Show comment
Hide comment
@ChartHeaven

ChartHeaven 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/

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