减小初始化界面抖动

This commit is contained in:
Van 2014-11-06 17:09:32 +08:00
parent 10a60be62d
commit 7a12131065
2 changed files with 3 additions and 8 deletions

View File

@ -142,12 +142,6 @@
} }
/* end tabs */ /* end tabs */
/* start framework */
.content {
position: relative;
}
/* end framework */
/* start menu */ /* start menu */
.menu { .menu {
background-color: #F0F0F0; background-color: #F0F0F0;

View File

@ -314,9 +314,10 @@ var wide = {
}); });
}, },
_initLayout: function () { _initLayout: function () {
var mainH = $(window).height() - $(".menu").height() - $(".footer").height() - 1, var mainH = $(window).height() - $(".menu").height() - $(".footer").height(),
bottomH = Math.floor(mainH * 0.3); bottomH = Math.floor(mainH * 0.3);
$(".content").height(mainH); // 减小初始化界面抖动
$(".content").height(mainH).css("position", "relative");
$(".side .tabs-panel").height(mainH - 20); $(".side .tabs-panel").height(mainH - 20);
$(".bottom-window-group > .tabs-panel > div > div").height(bottomH - 20); $(".bottom-window-group > .tabs-panel > div > div").height(bottomH - 20);