This commit is contained in:
thinkgem
2020-06-08 12:41:35 +08:00
parent d2e760dbd6
commit 94102a2ea4
2 changed files with 7 additions and 6 deletions

View File

@@ -34,9 +34,9 @@
js.initTabPage('tabpanel1', {
height: function () {
var windowHeight = $(window).height(),
headerHeight = $('.box-header').outerHeight(),
footerHeight = $('.box-footer').outerHeight(),
height = windowHeight - headerHeight - footerHeight - 3;
headerHeight = $('.box-header').outerHeight() || 0,
footerHeight = $('.box-footer').outerHeight() || 0,
height = windowHeight - headerHeight - footerHeight - 13;
return height < 300 ? 300 : height;
}
});
@@ -53,9 +53,10 @@
b.initTabPage('tabpanel2', {
height: function () {
var windowHeight = $(window).height(),
headerHeight = $('.box-header').outerHeight(),
footerHeight = $('.box-footer').outerHeight(),
height = windowHeight - headerHeight - footerHeight - 3;
headerHeight = $('.box-header').outerHeight() || 0,
footerHeight = $('.box-footer').outerHeight() || 0,
height = windowHeight - headerHeight - footerHeight - 13;
log(height)
return height < 300 ? 300 : height;
}
});