So I've got a div with a child element, and the child element is zoomable. To zoom the child element, I use matrix to transform to the new scale, but I'm noticing an issue: when the scale is greater than 1, the child element is larger than the scroll bar of the parent element, so when you scroll to the end, some of the child element is cut off. How do I fix this?
EDIT
I've tried setting overflow: scroll
as opposed to the overflow: auto
that I"m currently using, and I've tried expanding the width/height of the parent div, but neither worked. Expanding the width/height of the parent div just makes it larger on the page
EDIT 2
According to this stackoverflow question, what I needed was to add the style transformOrigin: 0 0
when I zoom the chart. that fixes the cropping