Browse Source

Fix local tools update

pull/3487/head
Artur Arseniev 5 years ago
parent
commit
90e6561b75
  1. 6
      src/commands/view/SelectComponent.js

6
src/commands/view/SelectComponent.js

@ -192,7 +192,7 @@ export default {
this.elSelected = result;
this.updateToolsGlobal();
// This will hide some elements from the select component
this.updateToolsLocal(result);
this.updateLocalPos(result);
this.initResize(component);
}),
@ -203,11 +203,11 @@ export default {
this.updateToolsGlobal();
},
updateLocalPos() {
updateLocalPos(data) {
const sel = this.getElHovered();
if (!sel.el) return;
sel.pos = this.getElementPos(sel.el);
this.updateToolsLocal();
this.updateToolsLocal(data);
},
getElHovered() {

Loading…
Cancel
Save