mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
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:
commit
3357ba8954
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue