1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-31 10:40:10 +02:00

defer resize updation to next stack. fixes #51

This commit is contained in:
Kushagra Gour
2017-01-25 03:25:49 +05:30
parent 1b7f8cbb1e
commit 8ca8ac999e

View File

@@ -142,7 +142,11 @@ settingsBtn, onboardModal, notificationsBtn, onboardShowInTabOptionBtn, onboardD
minSize: 34,
gutterSize: 6,
onDragEnd: function () {
scope.setPreviewContent(true);
// Running preview updation in next call stack, so that error there
// doesn't affect this dragend listener.
setTimeout(function () {
scope.setPreviewContent(true);
}, 1);
}
});
}