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

Method _getViewPortSize

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

Source from the content-addressed store, hash-verified

6589 return o.top < s.top - p ? (o.top = s.top, o.bottom = o.top + o.height) : o.bottom > s.bottom && (o.bottom = s.bottom, o.top = o.bottom - o.height), o.left < s.left ? (o.left = s.left, o.right = s.left + o.width) : o.right > s.right && (o.right = s.right, o.left = o.right - o.width), l.x >= o.left && l.x <= o.right && (o.left = l.x - o.width - _, o.right = o.left + o.width), l.y >= o.top && l.y <= o.bottom && (o.top = l.y - o.height - r, o.bottom = o.top + o.height), o.left < 0 && (o.left = 0), o.right < 0 && (o.right = 0), o;
6590 }
6591 _getViewPortSize() {
6592 const i = this._scheduler, t = i.$domHelpers, n = this._getViewPort();
6593 let s, a = n, o = window.scrollY + document.body.scrollTop, _ = window.scrollX + document.body.scrollLeft;
6594 return n === i.$event_data ? (a = i.$event, o = 0, _ = 0, s = t.getNodePosition(i.$event)) : s = t.getNodePosition(a), { left: s.x + _, top: s.y + o, width: s.width, height: s.height, bottom: s.y + s.height + o, right: s.x + s.width + _ };
6595 }
6596}
6597class Va {
6598 constructor(i) {

Callers 1

Calls 1

_getViewPortMethod · 0.95

Tested by

no test coverage detected