Browse Source

Include parent in static guides

pull/1918/head
Artur Arseniev 8 years ago
parent
commit
14b4a5e745
  1. 6
      src/commands/view/ComponentDrag.js

6
src/commands/view/ComponentDrag.js

@ -108,12 +108,14 @@ module.exports = {
getGuidesStatic() {
let result = [];
const el = this.target.getEl();
const { parentNode = {} } = el;
each(
el.parentNode.children,
parentNode.children,
item =>
(result = result.concat(el !== item ? this.getElementGuides(item) : []))
);
return result;
return result.concat(this.getElementGuides(parentNode));
},
getGuidesTarget() {

Loading…
Cancel
Save