resize
This commit is contained in:
parent
dec2e5233b
commit
e7c47bf4ae
|
@ -449,6 +449,16 @@ var wide = {
|
|||
this._initDialog();
|
||||
|
||||
this._initLayout();
|
||||
|
||||
$(window).resize(function () {
|
||||
wide._initLayout();
|
||||
var editorDatas = editors.data,
|
||||
height = $(".edit-panel").height() - $(".edit-panel .tabs").height();
|
||||
for (var i = 0, ii = editorDatas.length; i < ii; i++) {
|
||||
editorDatas[i].editor.setSize("100%", height);
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
_save: function (path, editor) {
|
||||
if (!path) {
|
||||
|
|
|
@ -104,9 +104,10 @@ var windows = {
|
|||
}, function () {
|
||||
$(".edit-panel").css("height", "70%");
|
||||
|
||||
var editorDatas = editors.data;
|
||||
var editorDatas = editors.data,
|
||||
height = $(".edit-panel").height() - $(".edit-panel .tabs").height();
|
||||
for (var i = 0, ii = editorDatas.length; i < ii; i++) {
|
||||
editorDatas[i].editor.setSize("100%", $(".edit-panel").height() - $(".edit-panel .tabs").height());
|
||||
editorDatas[i].editor.setSize("100%", height);
|
||||
}
|
||||
|
||||
$it.show();
|
||||
|
@ -136,9 +137,10 @@ var windows = {
|
|||
minBottom: function () {
|
||||
$(".edit-panel").css("height", "100%");
|
||||
|
||||
var editorDatas = editors.data;
|
||||
var editorDatas = editors.data,
|
||||
height = $(".content").height() - $(".edit-panel .tabs").height();
|
||||
for (var i = 0, ii = editorDatas.length; i < ii; i++) {
|
||||
editorDatas[i].editor.setSize("100%", $(".content").height() - $(".edit-panel .tabs").height());
|
||||
editorDatas[i].editor.setSize("100%", height);
|
||||
}
|
||||
|
||||
$(".bottom-window-group").css("top", "100%").hide();
|
||||
|
|
Loading…
Reference in New Issue