提交 6e4a3aee 编写于 作者: A Abdullah Almsaeed

Merge pull request #62 from seven1m/footer

Account for (optional) footer in wrapper height calc.
......@@ -101,7 +101,7 @@ $(function() {
**/
function _fix() {
//Get window height and the wrapper height
var height = $(window).height() - $("body > .header").height();
var height = $(window).height() - $("body > .header").height() - ($("body > .footer").outerHeight() || 0);
$(".wrapper").css("min-height", height + "px");
var content = $(".wrapper").height();
//If the wrapper height is greater than the window
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册