(el: HTMLElement)
| 551 | } |
| 552 | |
| 553 | static removePositioningStyles(el: HTMLElement): void { |
| 554 | const style = el.style; |
| 555 | if (style.position) { |
| 556 | style.removeProperty('position'); |
| 557 | } |
| 558 | if (style.left) { |
| 559 | style.removeProperty('left'); |
| 560 | } |
| 561 | if (style.top) { |
| 562 | style.removeProperty('top'); |
| 563 | } |
| 564 | if (style.width) { |
| 565 | style.removeProperty('width'); |
| 566 | } |
| 567 | if (style.height) { |
| 568 | style.removeProperty('height'); |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | /** @internal returns the passed element if vertically scrollable, else the closest parent that will, up to the entire document scrolling element */ |
| 573 | static getScrollElement(el?: HTMLElement): HTMLElement { |
no outgoing calls
no test coverage detected