Skip to content

Commit 7e1f48c

Browse files
author
Alexis Beingessner
committed
Ticket OscarGodson#132 - adding bigger timeouts for view changes
1 parent d0d0521 commit 7e1f48c

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

epiceditor/js/epiceditor.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1083,8 +1083,12 @@
10831083
self.getElement('editor').documentElement.addEventListener('cut', boundAutogrow);
10841084

10851085
self.on('update', boundAutogrow);
1086-
self.on('edit', boundAutogrow);
1087-
self.on('preview', boundAutogrow);
1086+
self.on('edit', function () {
1087+
setTimeout(boundAutogrow, 50)
1088+
});
1089+
self.on('preview', function () {
1090+
setTimeout(boundAutogrow, 50)
1091+
});
10881092

10891093
//for browsers that have rendering delays
10901094
setTimeout(boundAutogrow, 50);

0 commit comments

Comments
 (0)