MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / removePositioningStyles

Method removePositioningStyles

src/utils.ts:553–570  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

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 {

Callers 3

_setupAcceptWidgetMethod · 0.80
onEndMovingMethod · 0.80
utils-spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected