From ffc13c5e5900e5b13362657ec4466e82d68d8d64 Mon Sep 17 00:00:00 2001 From: Heiko Kernbach Date: Mon, 8 Jul 2013 14:06:53 +0200 Subject: [PATCH 1/2] #446 - fixed --- html/admin/js/views/shellView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }, From 30c3f1ae5a4b98619ac825fb2aadbc816c309457 Mon Sep 17 00:00:00 2001 From: Heiko Kernbach Date: Mon, 8 Jul 2013 14:43:31 +0200 Subject: [PATCH 2/2] css --- html/admin/css/shellView.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/admin/css/shellView.css b/html/admin/css/shellView.css index 24345f0394..46df1ae9a0 100644 --- a/html/admin/css/shellView.css +++ b/html/admin/css/shellView.css @@ -18,7 +18,7 @@ #editor { float:left; - width: 300px; + width: 150px; height: 400px; background-color:white; overflow: hidden;