update src/views/chart/ContentEdit/components/EditRule/index.vue.

坐标尺刻度错位问题

Signed-off-by: xlys999 <xlys998@163.com>
This commit is contained in:
xlys999 2023-07-03 14:10:00 +00:00 committed by 奔跑的面条
parent c575cff727
commit bb610ff7ae

View File

@ -159,9 +159,11 @@ const dragCanvas = (e: any) => {
const canvasBox = () => {
const layoutDom = document.getElementById('go-chart-edit-layout')
if (layoutDom) {
//
const scrollW = 20
return {
height: layoutDom.clientHeight - 25,
width: layoutDom.clientWidth
height: layoutDom.clientHeight - scrollW,
width: layoutDom.clientWidth - scrollW
}
}
return {