From 12848721dc4979c89be65b1ed90e1e4003e82551 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 7 Jul 2020 00:52:19 +0200 Subject: [PATCH] Use updateGlobalPos in updateAttached --- src/commands/view/SelectComponent.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/commands/view/SelectComponent.js b/src/commands/view/SelectComponent.js index 3282e0f79..b58a39e41 100644 --- a/src/commands/view/SelectComponent.js +++ b/src/commands/view/SelectComponent.js @@ -708,26 +708,13 @@ export default { style.height = pos.height + unit; this.updateToolbarPos({ top: targetToElem.top, left: targetToElem.left }); - - // const { resizer, em } = this; - // const model = em.getSelected(); - // const el = model && model.getEl(); - // if (!el) return; - - // if (el && this.elSelected !== el) { - // this.elSelected = el; - // const pos = this.getElementPos(el); - // this.updateToolbarPos(el, pos); - // this.showFixedElementOffset(el, pos); - // resizer && resizer.updateContainer(); - // } }, /** * Update attached elements, eg. component toolbar */ updateAttached: debounce(function() { - this.updateToolsGlobal(); + this.updateGlobalPos(); }), /**