diff --git a/html/admin/js/views/shellView.js b/html/admin/js/views/shellView.js index d585011395..ef065f0ad1 100644 --- a/html/admin/js/views/shellView.js +++ b/html/admin/js/views/shellView.js @@ -21,6 +21,7 @@ var shellView = Backbone.View.extend({ $("#shell_workspace").splitter({ dock: true }); + $("#shell_workspace").trigger("resize", [ 150 ]); $('.vsplitbar').append('
'); this.resize(); @@ -38,10 +39,11 @@ var shellView = Backbone.View.extend({ resize: function () { // prevent endless recursion if (! this.resizing) { + var editorWidth = $('#editor').width(); this.resizing = true; var windowHeight = $(window).height() - 200; $('#shell_workspace').height(windowHeight); - $("#shell_workspace").trigger("resize", [ 200 ]); + $("#shell_workspace").trigger("resize", [ editorWidth ]); this.resizing = false; } },