mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 08:44:29 +01:00
...
This commit is contained in:
parent
4e940f330d
commit
5e7f7b302d
1 changed files with 4 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue