Fix: minor

This commit is contained in:
eight 2018-10-14 16:27:17 +08:00
parent 2c2d849fa4
commit fb1b49b8bb

View File

@ -180,15 +180,6 @@ function createSection({
event.preventDefault(); event.preventDefault();
showMozillaFormatImport(text); showMozillaFormatImport(text);
} }
// FIXME: why?
// if (editors.length === 1) {
// setTimeout(() => {
// if (cm.display.sizer.clientHeight > cm.display.wrapper.clientHeight) {
// maximizeCodeHeight.stats = null;
// maximizeCodeHeight(cm.getSection(), true);
// }
// });
// }
}); });
if (!FIREFOX) { if (!FIREFOX) {
cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event)); cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event));