Properly resize note list
This commit is contained in:
parent
7684e53c47
commit
0d62d7b979
1 changed files with 7 additions and 0 deletions
|
|
@ -25,10 +25,17 @@
|
|||
function resize()
|
||||
{
|
||||
var heights = window.innerHeight;
|
||||
|
||||
$("#main").height(heights+"px");
|
||||
|
||||
var h = $('#main-nav').outerHeight(true);
|
||||
var subheaderHeight = $('#nblist > div:first-child').outerHeight(true);
|
||||
|
||||
$('#notebook-list').height(heights-h-subheaderHeight);
|
||||
|
||||
var searchBarHeight = $('#entry-search-bar').outerHeight(true);
|
||||
|
||||
$('#entry-list').height(heights-searchBarHeight);
|
||||
}
|
||||
resize();
|
||||
$(window).resize(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue