qianlishi 3 years ago
parent 8eead79f1c
commit 70875aef62

@ -327,8 +327,8 @@ export default {
}, },
// //
bigscreenScaleInWorkbench() { bigscreenScaleInWorkbench() {
var widthScale = this.middleWidth / this.bigscreenWidth; var widthScale = (this.middleWidth - 18) / this.bigscreenWidth;
var heightScale = this.middleHeight / this.bigscreenHeight; var heightScale = (this.middleHeight - 18) / this.bigscreenHeight;
return Math.min(widthScale, heightScale); return Math.min(widthScale, heightScale);
}, },
workbenchTransform() { workbenchTransform() {
@ -338,10 +338,10 @@ export default {
}, },
// //
bigscreenWidthInWorkbench() { bigscreenWidthInWorkbench() {
return this.getPXUnderScale(this.bigscreenWidth); return this.getPXUnderScale(this.bigscreenWidth) + 18;
}, },
bigscreenHeightInWorkbench() { bigscreenHeightInWorkbench() {
return this.getPXUnderScale(this.bigscreenHeight); return this.getPXUnderScale(this.bigscreenHeight) + 18;
} }
}, },
watch: { watch: {
@ -885,6 +885,7 @@ export default {
padding: 0; padding: 0;
.vueRuler { .vueRuler {
width: 100%; width: 100%;
padding: 18px 0px 0px 18px;
} }
.workbench { .workbench {
background-color: #1e1e1e; background-color: #1e1e1e;

Loading…
Cancel
Save