Skip to content

Commit

Permalink
Fixed fit to window
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Apr 29, 2020
1 parent 67a4525 commit c4bad74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ const mergeProps = (
...ownProps,
toggleWriteable: () => dispatchProps.setWriteable(!stateProps.isWriteable),
enterFullscreen: () => dispatchProps.setFullscreen(true),
fitToWindow: () => getFitZoomScale(boundingBox, workpadWidth, workpadHeight),
fitToWindow: () =>
dispatchProps.setZoomScale(getFitZoomScale(boundingBox, workpadWidth, workpadHeight)),
};
};

Expand Down

0 comments on commit c4bad74

Please sign in to comment.