opti: style of float box (#1067)

This commit is contained in:
Ran Luo 2019-06-07 03:26:20 +08:00 committed by Felix Häusler
parent c364004325
commit f9d9061d9f

View File

@ -53,7 +53,7 @@ class BaseFloat {
// use polyfill
erd.listenTo(container, ele => {
const { offsetWidth, offsetHeight } = ele
Object.assign(floatBox.style, { width: `${offsetWidth + 2}px`, height: `${offsetHeight + 2}px` })
Object.assign(floatBox.style, { width: `${offsetWidth}px`, height: `${offsetHeight}px` })
this.popper && this.popper.update()
})