Browse Source

Use updateGlobalPos in updateAttached

pull/2890/head
Artur Arseniev 6 years ago
parent
commit
12848721dc
  1. 15
      src/commands/view/SelectComponent.js

15
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();
}),
/**

Loading…
Cancel
Save