mirror of
https://gitee.com/dromara/go-view.git
synced 2024-11-29 18:28:28 +08:00
update src/views/chart/ContentEdit/components/EditRule/index.vue.
坐标尺刻度错位问题 Signed-off-by: xlys999 <xlys998@163.com>
This commit is contained in:
parent
c575cff727
commit
bb610ff7ae
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user