resize
This commit is contained in:
parent
dec2e5233b
commit
e7c47bf4ae
|
@ -449,6 +449,16 @@ var wide = {
|
||||||
this._initDialog();
|
this._initDialog();
|
||||||
|
|
||||||
this._initLayout();
|
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) {
|
_save: function (path, editor) {
|
||||||
if (!path) {
|
if (!path) {
|
||||||
|
|
|
@ -104,9 +104,10 @@ var windows = {
|
||||||
}, function () {
|
}, function () {
|
||||||
$(".edit-panel").css("height", "70%");
|
$(".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++) {
|
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();
|
$it.show();
|
||||||
|
@ -136,9 +137,10 @@ var windows = {
|
||||||
minBottom: function () {
|
minBottom: function () {
|
||||||
$(".edit-panel").css("height", "100%");
|
$(".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++) {
|
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();
|
$(".bottom-window-group").css("top", "100%").hide();
|
||||||
|
|
Loading…
Reference in New Issue