()
| 7537 | } |
| 7538 | var cachedBorderBoxValue; |
| 7539 | function checkIfBorderBoxStyling() { |
| 7540 | if (scheduler2._is_material_skin()) { |
| 7541 | return true; |
| 7542 | } else { |
| 7543 | if (cachedBorderBoxValue === void 0) { |
| 7544 | var probe = document.createElement("div"); |
| 7545 | probe.style.position = "absolute"; |
| 7546 | probe.style.left = "-9999px"; |
| 7547 | probe.style.top = "-9999px"; |
| 7548 | probe.innerHTML = "<div class='dhx_cal_container'><div class='dhx_cal_data'><div class='dhx_cal_event'><div class='dhx_body'></div></div><div>"; |
| 7549 | document.body.appendChild(probe); |
| 7550 | var styles = window.getComputedStyle(probe.querySelector(".dhx_body")); |
| 7551 | var boxSizing = styles.getPropertyValue("box-sizing"); |
| 7552 | document.body.removeChild(probe); |
| 7553 | cachedBorderBoxValue = !!(boxSizing === "border-box"); |
| 7554 | if (!cachedBorderBoxValue) { |
| 7555 | setTimeout(function() { |
| 7556 | cachedBorderBoxValue = void 0; |
| 7557 | }, 1e3); |
| 7558 | } |
| 7559 | } else { |
| 7560 | return cachedBorderBoxValue; |
| 7561 | } |
| 7562 | } |
| 7563 | } |
| 7564 | function refreshAfterLoad() { |
| 7565 | if (scheduler2._is_material_skin() || scheduler2._border_box_events()) { |
| 7566 | return; |
no outgoing calls
no test coverage detected