Domanda

Here's the fiddle.

I had issue width the chart with on toggling the sidebar.

And I got it solved with the help of SO from this post.

Now I'm facing with another bug. That is if I add some transition in toggling the sidebar.

The chart width gets vice-versa.

In the above fiddle you can find it.

If I remove the transition, it does works fine.

Here's the fiddle which works fine without the sidebar transition.

Help me out to solve this bug.

Thanks in advance.

È stato utile?

Soluzione

You are having an issue with the timing. You are trying to reflow the chart before the animation is finished. Try with setTimeout(reflowChart, 200) as I did here: http://jsfiddle.net/hige/J4Uz2/

Hope it helps! :)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top