Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Fix balloon view position
Sauli Antoae589a886cf5
diff --git a/src/utils.js b/src/utils.jsindex beddbdaa74..eff8089c08 100644--- a/src/utils.js+++ b/src/utils.js@@ -114,7 +114,9 @@ export function getBalloonPositionData( editor ) {return {target: view.domConverter.viewToDom( selectedElement ),positions: [- defaultPositions.southArrowNorth+ defaultPositions.southArrowNorth,+ defaultPositions.southArrowNorthWest,+ defaultPositions.southArrowNorthEast,]};}@@ -123,7 +125,9 @@ export function getBalloonPositionData( editor ) {return {target: view.domConverter.viewRangeToDom( viewDocument.selection.getFirstRange() ),positions: [- defaultPositions.southArrowNorth+ defaultPositions.southArrowNorth,+ defaultPositions.southArrowNorthWest,+ defaultPositions.southArrowNorthEast,]};}