File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt
338338 this . helperContainment = this . helper . parentElement ;
339339 if ( this . helper . style . position !== 'fixed' ) {
340340 this . parentOriginStylePosition = this . helperContainment . style . position ;
341- if ( window . getComputedStyle ( this . helperContainment ) . position . match ( / s t a t i c / ) ) {
341+ if ( getComputedStyle ( this . helperContainment ) . position . match ( / s t a t i c / ) ) {
342342 this . helperContainment . style . position = 'relative' ;
343343 }
344344 }
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export class DDResizable extends DDBaseImplement implements HTMLElementExtendOpt
217217 protected _setupHelper ( ) : DDResizable {
218218 this . elOriginStyleVal = DDResizable . _originStyleProp . map ( prop => this . el . style [ prop ] ) ;
219219 this . parentOriginStylePosition = this . el . parentElement . style . position ;
220- if ( window . getComputedStyle ( this . el . parentElement ) . position . match ( / s t a t i c / ) ) {
220+ if ( getComputedStyle ( this . el . parentElement ) . position . match ( / s t a t i c / ) ) {
221221 this . el . parentElement . style . position = 'relative' ;
222222 }
223223 this . el . style . position = 'absolute' ;
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ export class Utils {
481481 }
482482
483483 // public static setPositionRelative(el: HTMLElement): void {
484- // if (!(/^(?:r|a|f)/).test(window. getComputedStyle(el).position)) {
484+ // if (!(/^(?:r|a|f)/).test(getComputedStyle(el).position)) {
485485 // el.style.position = "relative";
486486 // }
487487 // }
You can’t perform that action at this time.
0 commit comments