fix: 🐛 get container size use offsetxxx

This commit is contained in:
vector
2021-03-03 13:43:23 +08:00
parent 35cf5ba409
commit a66ab4fd5b

View File

@ -22,8 +22,9 @@ export class SizeManager extends Base {
SizeSensor.bind(target, () => {
const container = this.getContainer()
const width = container.clientWidth
const height = container.clientHeight
// container is border-box
const width = container.offsetWidth
const height = container.offsetHeight
this.resize(width, height)
})
}