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

View File

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