My div content canvas in first width : 1300, height = 500
Then I resize div to width = 800, height = 500
And I resize canvas to width = 800, height = 500 to fix window
But Some Elements in canvas is hide (because My canvas width now is 800px)
So I use setViewBox to zoom it to fix width my new width, height
Result: mouse not fix with element when I drag them (I think I calculate wrong width-height for setViewBox)
Other question: Have any way to let canvas height auto extend when drag element down?
Thanks for help :)