mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 08:46:43 +01:00
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:
7
static/js/init.js
Normal file
7
static/js/init.js
Normal 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();
|
||||
});
|
||||
Reference in New Issue
Block a user