| 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) { |