From f9d9061d9f19a320298ddec2b6eba7cf8cb1c19a Mon Sep 17 00:00:00 2001 From: Ran Luo Date: Fri, 7 Jun 2019 03:26:20 +0800 Subject: [PATCH] opti: style of float box (#1067) --- src/muya/lib/ui/baseFloat/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/muya/lib/ui/baseFloat/index.js b/src/muya/lib/ui/baseFloat/index.js index 6c90fd9a..e6a26dca 100644 --- a/src/muya/lib/ui/baseFloat/index.js +++ b/src/muya/lib/ui/baseFloat/index.js @@ -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() })