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

Function fitQIInsideWindow

codebase/sources/dhtmlxscheduler.js:15458–15465  ·  view source on GitHub ↗
(quickInfoPopup)

Source from the content-addressed store, hash-verified

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

Callers 1

quick_infoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected