1
0
Fork 0
This commit is contained in:
Heiko Kernbach 2013-07-08 14:06:53 +02:00
parent 1a91aef78b
commit ffc13c5e59
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ var shellView = Backbone.View.extend({
$("#shell_workspace").splitter({
dock: true
});
$("#shell_workspace").trigger("resize", [ 150 ]);
$('.vsplitbar').append('<div id="editor-run"><img src="img/right_icon.png"></img></div>');
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;
}
},