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
338
338
this . helperContainment = this . helper . parentElement ;
339
339
if ( this . helper . style . position !== 'fixed' ) {
340
340
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 / ) ) {
342
342
this . helperContainment . style . position = 'relative' ;
343
343
}
344
344
}
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export class DDResizable extends DDBaseImplement implements HTMLElementExtendOpt
217
217
protected _setupHelper ( ) : DDResizable {
218
218
this . elOriginStyleVal = DDResizable . _originStyleProp . map ( prop => this . el . style [ prop ] ) ;
219
219
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 / ) ) {
221
221
this . el . parentElement . style . position = 'relative' ;
222
222
}
223
223
this . el . style . position = 'absolute' ;
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ export class Utils {
481
481
}
482
482
483
483
// 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)) {
485
485
// el.style.position = "relative";
486
486
// }
487
487
// }
You can’t perform that action at this time.
0 commit comments