From 367dd3bbea724c6594b28f47e4d5c8724c83a03b Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 21 Sep 2019 17:26:41 +0200 Subject: [PATCH] Make the global and the local toolbars wrapper fit the target --- src/commands/view/SelectComponent.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/commands/view/SelectComponent.js b/src/commands/view/SelectComponent.js index 7c56bab81..c77d37363 100644 --- a/src/commands/view/SelectComponent.js +++ b/src/commands/view/SelectComponent.js @@ -610,14 +610,6 @@ export default { left -= leftR - frCvOff.width; } - console.log({ - frameOffsetH: frameOffset.height, - topOff: opts.topOff, - top, - elIsShort, - toolbarH - }); - toolbarStyle.top = `${top}${unit}`; toolbarStyle.left = `${left}${unit}`; toolbarStyle.opacity = ''; @@ -705,6 +697,8 @@ export default { style.top = topOff + unit; style.left = leftOff + unit; + style.width = pos.width + unit; + style.height = pos.height + unit; }, updateToolsGlobal() { @@ -729,6 +723,8 @@ export default { const leftOff = frameOff.left; style.top = topOff + unit; style.left = leftOff + unit; + style.width = pos.width + unit; + style.height = pos.height + unit; this.updateToolbarPos(el, pos, { topOff,