mirror of
https://github.com/marktext/marktext.git
synced 2025-05-18 18:00:30 +08:00
opti: style of float box (#1067)
This commit is contained in:
parent
c364004325
commit
f9d9061d9f
@ -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()
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user