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() {