mirror of https://gitee.com/bigwinds/arangodb
#446 - fixed
This commit is contained in:
parent
1a91aef78b
commit
ffc13c5e59
|
@ -21,6 +21,7 @@ var shellView = Backbone.View.extend({
|
||||||
$("#shell_workspace").splitter({
|
$("#shell_workspace").splitter({
|
||||||
dock: true
|
dock: true
|
||||||
});
|
});
|
||||||
|
$("#shell_workspace").trigger("resize", [ 150 ]);
|
||||||
|
|
||||||
$('.vsplitbar').append('<div id="editor-run"><img src="img/right_icon.png"></img></div>');
|
$('.vsplitbar').append('<div id="editor-run"><img src="img/right_icon.png"></img></div>');
|
||||||
this.resize();
|
this.resize();
|
||||||
|
@ -38,10 +39,11 @@ var shellView = Backbone.View.extend({
|
||||||
resize: function () {
|
resize: function () {
|
||||||
// prevent endless recursion
|
// prevent endless recursion
|
||||||
if (! this.resizing) {
|
if (! this.resizing) {
|
||||||
|
var editorWidth = $('#editor').width();
|
||||||
this.resizing = true;
|
this.resizing = true;
|
||||||
var windowHeight = $(window).height() - 200;
|
var windowHeight = $(window).height() - 200;
|
||||||
$('#shell_workspace').height(windowHeight);
|
$('#shell_workspace').height(windowHeight);
|
||||||
$("#shell_workspace").trigger("resize", [ 200 ]);
|
$("#shell_workspace").trigger("resize", [ editorWidth ]);
|
||||||
this.resizing = false;
|
this.resizing = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue