layout conversion to cleaner CSS grid, work in progress

This commit is contained in:
azivner
2017-09-23 23:54:38 -04:00
parent d47b2e5d0e
commit 21f49ea7c5
3 changed files with 79 additions and 89 deletions

View File

@@ -1,21 +1,3 @@
$(function() {
$(window).resize(function() {
// dynamically setting height of tree and note content to match window's height
const fancyTree = $('ul.fancytree-container');
if (fancyTree.length) {
fancyTree.height($(window).height() - fancyTree.offset().top - 10);
}
const noteEditable = $('div.note-editable');
if (noteEditable.length) {
noteEditable.height($(window).height() - noteEditable.offset().top);
}
});
$(window).resize();
});
// hot keys are active also inside inputs and content editables
jQuery.hotkeys.options.filterInputAcceptingElements = true;
jQuery.hotkeys.options.filterContentEditable = true;