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

Top half of ColorAxis being cut off after a resize #5912

Closed
andrewr88 opened this Issue Oct 31, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@andrewr88

andrewr88 commented Oct 31, 2016

Expected behaviour

The top half of the label on a Vertically laid out ColorAxis should not be cut off after making the height small and then large again

Actual behaviour

When using a color axis laid out vertically, If the chart height is sized smaller than the ColorAxis, then resized back to a normal size, part of the top of the axis seems to get cut off. In particular if you have a label on the top of the axis it cuts off the top half of the label.

It's also interesting to note that even when the colorAxis is laid out horizontally it seems to cut off the top of the axis by a pixel or two

I've tried a few things as a workaround to restore the top label to a good state, but haven't had any luck so far. Any Ideas?

Thanks!

Live demo with steps to reproduce

http://jsfiddle.net/xgv2sucv/

I put together a quick fiddle from an existing one on the API. But essentially the steps are very simple for this example.

  1. chart.setSize(400, {very small number})
  2. chart.setSize(400, 400)

Affected browser(s)

@TorsteinHonsi TorsteinHonsi added the Bug label Nov 1, 2016

TorsteinHonsi added a commit that referenced this issue Nov 17, 2016

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