Skip to content

Commit

Permalink
Merge pull request Codiad#920 from nerodark/master
Browse files Browse the repository at this point in the history
Fix render issues refactoring
  • Loading branch information
daeks authored Jun 14, 2016
2 parents 3aafb8e + 0dfc677 commit 58ed336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 0 additions & 8 deletions components/active/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions js/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 58ed336

Please sign in to comment.