This commit is contained in:
Kovid Goyal 2011-02-25 08:47:47 -07:00
parent 4e940f330d
commit 5e7f7b302d

View File

@ -108,8 +108,10 @@ function init() {
function toplevel_layout() {
var last = $(".toplevel li").last();
var title = $('.toplevel h3').first();
var bottom = last.position().top + last.height() - title.position().top;
$("#main").height(Math.max(200, bottom+75));
if (title && title.position()) {
var bottom = last.position().top + last.height() - title.position().top;
$("#main").height(Math.max(200, bottom+75));
}
}
function toplevel() {