diff --git a/components/active/init.js b/components/active/init.js index 26b1acd4e..1cb3004b7 100755 --- a/components/active/init.js +++ b/components/active/init.js @@ -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') diff --git a/js/system.js b/js/system.js index c9d39391e..5a9377920 100755 --- a/js/system.js +++ b/js/system.js @@ -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(){