@internal
()
| 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 { |