MCPcopy
hub / github.com/tholman/zenpen / updateBubblePosition

Function updateBubblePosition

js/editor.js:140–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 function updateBubblePosition() {
141 var selection = window.getSelection();
142 var range = selection.getRangeAt(0);
143 var boundary = range.getBoundingClientRect();
144
145 textOptions.style.top = boundary.top - 5 + window.pageYOffset + "px";
146 textOptions.style.left = (boundary.left + boundary.right)/2 + "px";
147 }
148
149 function updateBubbleStates() {
150

Callers 2

createEventBindingsFunction · 0.85
checkTextHighlightingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected