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:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user