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

Function fitQIInsideWindow

codebase/sources/dhtmlxscheduler.es.js:15454–15461  ·  view source on GitHub ↗
(quickInfoPopup)

Source from the content-addressed store, hash-verified

15452 }, 1);
15453 };
15454 function fitQIInsideWindow(quickInfoPopup) {
15455 const popupRect = quickInfoPopup.getBoundingClientRect();
15456 const containerRect = scheduler2.$container.getBoundingClientRect();
15457 const offsetBottom = containerRect.bottom - popupRect.bottom;
15458 if (offsetBottom < 0) {
15459 quickInfoPopup.style.top = `${parseFloat(quickInfoPopup.style.top) + offsetBottom}px`;
15460 }
15461 }
15462 scheduler2.attachEvent("onTemplatesReady", function() {
15463 scheduler2.hideQuickInfo();
15464 if (this._quick_info_box) {

Callers 1

quick_infoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected