diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue
index af6a34ce39..2a8f91e95c 100644
--- a/frontend/src/components/DeDrag/index.vue
+++ b/frontend/src/components/DeDrag/index.vue
@@ -610,7 +610,7 @@ export default {
const rect = this.$el.parentNode.getBoundingClientRect()
this.parentX = rect.x
this.parentY = rect.y
- return [Math.round(parseFloat(style.getPropertyValue('width'), 10)), Math.round(parseFloat(style.getPropertyValue('height'), 10))]
+ return [Math.round(parseFloat(style.getPropertyValue('width'), 10)), 100000]
}
if (typeof this.parent === 'string') {
const parentNode = document.querySelector(this.parent)
diff --git a/frontend/src/components/canvas/components/Editor/Preview.vue b/frontend/src/components/canvas/components/Editor/Preview.vue
index 05800834fe..e73b426c00 100644
--- a/frontend/src/components/canvas/components/Editor/Preview.vue
+++ b/frontend/src/components/canvas/components/Editor/Preview.vue
@@ -110,12 +110,16 @@ export default {
}
}
}
- if (this.canvasStyleData.selfAdaption) {
- style = {
- overflow: 'hidden',
- ...style
- }
- }
+ // if (this.canvasStyleData.selfAdaption) {
+ // style = {
+ // overflow: 'hidden',
+ // ...style
+ // }
+ // }
+ // style = {
+ // overflow-x :'hidden',
+ // ...style
+ // }
return style
},
// 此处单独计算componentData的值 不放入全局mapState中
@@ -168,10 +172,13 @@ export default {
const canvasWidth = document.getElementById('canvasInfoTemp').offsetWidth
this.scaleWidth = canvasWidth * 100 / parseInt(this.canvasStyleData.width)// 获取宽度比
this.scaleHeight = canvasHeight * 100 / parseInt(this.canvasStyleData.height)// 获取高度比
- if (this.showType === 'width') {
- this.scaleHeight = this.scaleWidth
- this.mainHeight = this.canvasStyleData.height * this.scaleHeight / 100 + 'px'
- }
+
+ this.scaleHeight = this.scaleWidth
+ // this.mainHeight = this.canvasStyleData.height * this.scaleHeight / 100 + 'px'
+ // if (this.showType === 'width') {
+ // this.scaleHeight = this.scaleWidth
+ // this.mainHeight = this.canvasStyleData.height * this.scaleHeight / 100 + 'px'
+ // }
this.handleScaleChange()
},
resetID(data) {
diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue
index ca686fc356..fdc534aa08 100644
--- a/frontend/src/components/canvas/components/Editor/index.vue
+++ b/frontend/src/components/canvas/components/Editor/index.vue
@@ -12,7 +12,7 @@
@mousedown="handleMouseDown"
>
-