mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -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) {
|
maybeZoomToFit (isBitmapMode) {
|
||||||
if (this.shouldZoomToFit instanceof paper.Matrix) {
|
if (this.shouldZoomToFit instanceof paper.Matrix) {
|
||||||
paper.view.matrix = this.shouldZoomToFit;
|
paper.view.matrix = this.shouldZoomToFit;
|
||||||
|
this.props.updateViewBounds(paper.view.matrix);
|
||||||
} else if (this.shouldZoomToFit === true) {
|
} else if (this.shouldZoomToFit === true) {
|
||||||
zoomToFit(isBitmapMode);
|
zoomToFit(isBitmapMode);
|
||||||
|
this.props.updateViewBounds(paper.view.matrix);
|
||||||
}
|
}
|
||||||
this.shouldZoomToFit = false;
|
this.shouldZoomToFit = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue