mirror of
https://gitee.com/dromara/go-view.git
synced 2026-07-11 02:11:07 +08:00
Compare commits
2 Commits
67e2e52ff5
...
8a3b173013
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a3b173013 | ||
|
|
0010efbf4b |
@ -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…
x
Reference in New Issue
Block a user