[BUG]初始化表格时,如果容器id不是luckysheet,点击工具栏中 “更多” 按钮,会报错!

t9aqgxwy  于 23天前  发布在  其他
关注(0)|答案(3)|浏览(26)

描述错误
初始化表格时,如果容器id不是luckysheet,点击工具栏中 “更多” 按钮,会报错!

重现
window.luckysheet.create({container:'test'})

点击工具栏,'更多'按钮!

错误定位
/src/controller/resize.js

第 168行
const containerLeft = $$('#luckysheet').getBoundingClientRect().left;
应该修改为:
const containerLeft = $$('#'+Store.container).getBoundingClientRect().left;
环境:
-操作系统:Windows
-浏览器 版本号:版本 89.0.4389.82(正式版本) (64 位)
-Luckysheet版本:2.1.13

备注
网络很不稳定,没发提PR,抱歉

相关问题