mirror of
https://github.com/Codiad/Codiad.git
synced 2026-02-19 18:21:19 +01:00
Fix render issues refactoring
I have been running a whole year with this fix without any issues and I am syncing it now.
This commit is contained in:
@@ -259,17 +259,9 @@
|
||||
$.each(listResponse, function(index, data) {
|
||||
codiad.filemanager.openFile(data.path, data.focused);
|
||||
});
|
||||
// Run resize command to fix render issues
|
||||
codiad.editor.resize();
|
||||
}
|
||||
});
|
||||
|
||||
// Run resize on window resize
|
||||
$(window).resize(function() {
|
||||
codiad.editor.resize();
|
||||
_this.updateTabDropdownVisibility();
|
||||
});
|
||||
|
||||
// Prompt if a user tries to close window without saving all filess
|
||||
window.onbeforeunload = function(e) {
|
||||
if ($('#list-active-files li.changed')
|
||||
|
||||
@@ -91,6 +91,9 @@
|
||||
.outerHeight() - 60) + 'px' // TODO Adjust '75' in function of the final tabs height.
|
||||
});
|
||||
|
||||
// Run resize command to fix render issues
|
||||
codiad.editor.resize();
|
||||
codiad.active.updateTabDropdownVisibility();
|
||||
});
|
||||
|
||||
$('#settings').click(function(){
|
||||
|
||||
Reference in New Issue
Block a user