From 0dfc677f30e0cfca2adeaf93b9d64421190e0dd1 Mon Sep 17 00:00:00 2001 From: nerodark Date: Sun, 12 Jun 2016 19:10:08 -0400 Subject: [PATCH] Fix render issues refactoring I have been running a whole year with this fix without any issues and I am syncing it now. --- components/active/init.js | 8 -------- js/system.js | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) 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(){