fix(仪表板): 修复tab中矩阵模式改为悬浮模式在一定的尺寸下可能出现无法移出的问题
This commit is contained in:
parent
b5b42b07fc
commit
8a58732e74
@ -496,8 +496,12 @@ export default {
|
|||||||
recordMatrixCurShadowStyle() {
|
recordMatrixCurShadowStyle() {
|
||||||
const left = (this.curComponent.x - 1) * this.curCanvasScaleSelf.matrixStyleWidth
|
const left = (this.curComponent.x - 1) * this.curCanvasScaleSelf.matrixStyleWidth
|
||||||
const top = (this.curComponent.y - 1) * this.curCanvasScaleSelf.matrixStyleHeight
|
const top = (this.curComponent.y - 1) * this.curCanvasScaleSelf.matrixStyleHeight
|
||||||
const width = this.curComponent.sizex * this.curCanvasScaleSelf.matrixStyleWidth
|
let width = this.curComponent.sizex * this.curCanvasScaleSelf.matrixStyleWidth
|
||||||
const height = this.curComponent.sizey * this.curCanvasScaleSelf.matrixStyleHeight
|
const height = this.curComponent.sizey * this.curCanvasScaleSelf.matrixStyleHeight
|
||||||
|
const ruleWidth = this.curCanvasScaleSelf.scalePointWidth * this.canvasStyleData.width - 5
|
||||||
|
if (width > ruleWidth) {
|
||||||
|
width = ruleWidth
|
||||||
|
}
|
||||||
const style = {
|
const style = {
|
||||||
left: left,
|
left: left,
|
||||||
top: top,
|
top: top,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user