MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _getViewPort

Method _getViewPort

codebase/dhtmlxscheduler.es.js:6582–6584  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6580 return !(!i || typeof i != "object") && "clientX" in i && "clientY" in i;
6581 }
6582 _getViewPort() {
6583 return this._root || document.body;
6584 }
6585 _calculateTooltipPosition(i) {
6586 const t = this._scheduler, n = t.$domHelpers, s = this._getViewPortSize(), a = this.getNode(), o = { top: 0, left: 0, width: a.offsetWidth, height: a.offsetHeight, bottom: 0, right: 0 }, _ = t.config.tooltip_offset_x, r = t.config.tooltip_offset_y, d = document.body, l = n.getRelativeEventPosition(i, d), h = n.getNodePosition(d);
6587 l.y += h.y, o.top = l.y, o.left = l.x, o.top += r, o.left += _, o.bottom = o.top + o.height, o.right = o.left + o.width;

Callers 1

_getViewPortSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected