auto resizing (full height) of tree and editor to fill the window without creating global scrollbar (instead there are independent scrollbars for tree and editor)

This commit is contained in:
azivner
2017-08-15 22:32:30 -04:00
parent b986e93356
commit bd19dd3e55
4 changed files with 15 additions and 4 deletions

7
static/js/init.js Normal file
View File

@@ -0,0 +1,7 @@
$(function() {
$(window).resize(function() {
$('div#tree').height($(window).height() - $('div#tree').offset().top);
$('div.note-editable').height($(window).height() - $('div.note-editable').offset().top);
});
$(window).resize();
});