diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 0d8e92535..823f86973 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -321,7 +321,7 @@ module.exports = { const { onEnd } = opts; onEnd && onEnd(); editor.stopCommand(id); - // this.hideGuidesInfo(); + this.hideGuidesInfo(); }, hideGuidesInfo() { @@ -354,6 +354,8 @@ module.exports = { const elGuideInfo = this[`elGuideInfo${axis.toUpperCase()}`]; const elGuideInfoCnt = this[`elGuideInfoContent${axis.toUpperCase()}`]; const guideInfoStyle = elGuideInfo.style; + + // Find the nearest element const res = guidesStatic .filter(stat => stat[axis] === item[axis]) .map(stat => { @@ -393,9 +395,7 @@ module.exports = { }px`; guideInfoStyle[isY ? 'width' : 'height'] = `${size}px`; elGuideInfoCnt.innerHTML = `${Math.round(sizeRaw)}px`; - console.log('size', size, 'sizeRaw', sizeRaw); } - // elGuideInfo.innerHTML = length }); },