I cant seem to find a simple way to automatically zoom to fit the contents of the component when it first loads. I have tried zoomToFit but it requires me to tell it the size of the content to fit, and it doesn't seem to work as I would expect. I was hoping just calling zoomToFit without any parameters would work, but it fails. I dont want to resort to having to measure things or do math just to have it fit its content to the viewport.