add margin for presentation mode
@@ -97,8 +97,8 @@ class Presentation extends Component {
const width = this.componentDom.offsetWidth
const height = this.componentDom.offsetHeight
- const widthRatio = this.slideAreaDom.offsetWidth / width
- const heightRatio = this.slideAreaDom.offsetHeight / height
+ const widthRatio = (this.slideAreaDom.offsetWidth - 30) / width
+ const heightRatio = (this.slideAreaDom.offsetHeight - 30) / height
const scaleRatio = Math.min(widthRatio, heightRatio, defaultScaleRatio)
