diff --git a/src/index.js b/src/index.js index 9777096..68b6af1 100644 --- a/src/index.js +++ b/src/index.js @@ -699,7 +699,7 @@ export default class Gantt { bars.forEach(bar => { const $bar = bar.$bar; $bar.finaldx = this.get_snap_position(dx); - + this.hide_popup(); if (is_resizing_left) { if (parent_bar_id === bar.task.id) { bar.update_bar_position({ diff --git a/src/popup.js b/src/popup.js index 39552a5..e9e9314 100644 --- a/src/popup.js +++ b/src/popup.js @@ -64,5 +64,6 @@ export default class Popup { hide() { this.parent.style.opacity = 0; + this.parent.style.left = 0; } }