mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
/browse: Proper resizing of top level grid view
This commit is contained in:
parent
9beeea57b1
commit
eb83ea3b9f
@ -74,6 +74,14 @@ function init() {
|
||||
}
|
||||
|
||||
// Top-level feed {{{
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
function toplevel() {
|
||||
$(".sort_select").hide();
|
||||
|
||||
@ -82,10 +90,8 @@ function toplevel() {
|
||||
window.location = href;
|
||||
});
|
||||
|
||||
|
||||
var last = $(".toplevel li").last();
|
||||
var bottom = last.position().top + last.height();
|
||||
$("#main").height(Math.max(680, bottom+150));
|
||||
toplevel_layout();
|
||||
$(window).resize(toplevel_layout);
|
||||
|
||||
}
|
||||
// }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user