krispo / ng2-nvd3

Angular2 component for nvd3
http://krispo.github.io/ng2-nvd3/
MIT License
328 stars 104 forks source link

parent width percentage bug #108

Closed SamMade closed 7 years ago

SamMade commented 7 years ago

i've been finding that when the parent container has width as a percentage (or has flex growth), The chart (any type) seems to be cut off on the right side. But if the width was fixed size it was fine. Then once the browser resizes, it will resize correctly. But if I refresh, the chart is cut off again. This happening at least on Chrome and Firefox. Has anyone else seen this?

Attached is what i'm seeing: top is fixed width, bottom is percentage

screen shot 2017-08-25 at 11 52 22 pm
SamMade commented 7 years ago

sorry for prematurely posting seems like there's an animation state that's screwing it up

VictorKozhevnikov commented 6 years ago

I'm having this too. So what do I do to it?