标尺刻度值和动态显示值对不上,动态显示的值是正确的,刻度值偏大
AN-535 opened this issue · 4 comments
AN-535 commented
pandashuai commented
宽高不统一导致的
zcxiaocai commented
有解决方法吗?
abcRichar commented
求解决办法,我的也是这样
huihuizx commented
他需要父组件的宽度减去 thick 和borderwidth
const borderWidth = 1; this.width = wrapperRect.width - this.thick - borderWidth; this.height = wrapperRect.height - this.thick - borderWidth;