From 5e7f7b302d7f83bf6afa030ada4bf0544477f228 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Feb 2011 08:47:47 -0700 Subject: [PATCH] ... --- resources/content_server/browse/browse.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/content_server/browse/browse.js b/resources/content_server/browse/browse.js index 2d9bc01082..a72069979c 100644 --- a/resources/content_server/browse/browse.js +++ b/resources/content_server/browse/browse.js @@ -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() {