InteractiveDataDisplay icon indicating copy to clipboard operation
InteractiveDataDisplay copied to clipboard

proper way of resizing an SVG plot?

Open FilippoPolo opened this issue 4 years ago • 0 comments

Hi all,

I'm using IDD to add zoom&pan capabilities to an SVG plot. It mostly works, but I can't get auto-resizing to work properly, specifically on height. My objective here is to maintain the same visible region as the window resizes. To do this, I periodically get the container size to see if it has changed.

I find that the plot shrinks when the container height is reduced, and remains the same height when the container height is increased. If you make the container alternately taller and shorter, this results in the plot shrinking constantly.

This is a repro:

iddsvg.zip

FilippoPolo avatar Apr 27 '20 09:04 FilippoPolo