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

Method _setupHelperContainmentStyle

src/dd-draggable.ts:392–401  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

390
391 /** @internal */
392 protected _setupHelperContainmentStyle(): DDDraggable {
393 this.helperContainment = this.helper.parentElement;
394 if (this.helper.style.position !== 'fixed') {
395 this.parentOriginStylePosition = this.helperContainment.style.position;
396 if (getComputedStyle(this.helperContainment).position.match(/static/)) {
397 this.helperContainment.style.position = 'relative';
398 }
399 }
400 return this;
401 }
402
403 /** @internal */
404 protected _getDragOffset(event: DragEvent, el: HTMLElement, parent: HTMLElement): DragOffset {

Callers 1

_mouseMoveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected