* Add support for note title tooltips under note tree widget
This change adds an option to set the 'tooltip' configuration of the
Fancytree component. This allows tooltips containing the note title to
be displayed when a hover is performed over a note title in the tree
widget.
* Revert DB Upgrade
The db upgrade is reverted as this is not required for options.
* Simplify boolean option comparison
With this change, the existing 'is(key)' method is used to perform
tooltip enable option boolean comparison.
* Display tooltip only on center-pane overlap - Experimental
With this change, a straight-forward method to detect HTML element
overlap has been identified (source:
https://gist.github.com/jtsternberg/c272d7de5b967cec2d3d). It is now
possible to detect whether the center-pane element overlaps with the
Fancytree node title-bar. Using this approach we now have a rough
implementation which only displays a note-title tooltip when there is a
center-pane overlap.
At this stage, this change is experimental and the following needs to be
further addressed,
- Register the 'mouseenter' event handler in an appropriate place. The
current placement of this event handler is only for testing.
- This change is now enabled by default. It needs to be seen whether it
would still make sense to disable it via an option.
* Remove option to set tooltip
With this change, the tooltip options menu item has been removed as it
becomes relevant to have this feature enabled by default.
* Revert further changes related to the options menu
Further changes are rolled back which was earlier related to the tooltip
options setting. Some of these were missed in the previous commit.
* Remove debug logging
Remove debug logging and unnecessary line breaks.
* Move note-title tooltip handler under note_tree.js
With this change, we move the definition for the note-title tooltip
handler inside 'note_tree.js'. Registration is done inside
'side_pane_toggles.js' as we would need the handler to detect the
'center-pane' element first before detecting collisions.