MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / getElementPosition

Function getElementPosition

examples/assets/library/iframe-content.js:396–405  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

394 }
395
396 function getElementPosition(el) {
397 var
398 elPosition = el.getBoundingClientRect(),
399 pagePosition = getPagePosition();
400
401 return {
402 x: parseInt(elPosition.left,10) + parseInt(pagePosition.x,10),
403 y: parseInt(elPosition.top,10) + parseInt(pagePosition.y,10)
404 };
405 }
406
407 function findTarget(location) {
408 function jumpToTarget(target) {

Callers 1

jumpToTargetFunction · 0.70

Calls 1

getPagePositionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…