Merge pull request #854 from paulkaplan/fix-initial-zoom-scrollbars

Make scrollbars show up at initial zoom-to-fit size
This commit is contained in:
Paul Kaplan 2019-06-24 09:25:22 -04:00 committed by GitHub
commit 3357ba8954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,8 +150,10 @@ class PaperCanvas extends React.Component {
maybeZoomToFit (isBitmapMode) {
if (this.shouldZoomToFit instanceof paper.Matrix) {
paper.view.matrix = this.shouldZoomToFit;
this.props.updateViewBounds(paper.view.matrix);
} else if (this.shouldZoomToFit === true) {
zoomToFit(isBitmapMode);
this.props.updateViewBounds(paper.view.matrix);
}
this.shouldZoomToFit = false;
}