|
|
@ -68,6 +68,12 @@ export class ModalPlacementDirective extends ResourceOwner implements AfterViewI |
|
|
this.renderer.setStyle(modalRef, 'bottom', 'auto'); |
|
|
this.renderer.setStyle(modalRef, 'bottom', 'auto'); |
|
|
this.renderer.setStyle(modalRef, 'right', 'auto'); |
|
|
this.renderer.setStyle(modalRef, 'right', 'auto'); |
|
|
|
|
|
|
|
|
|
|
|
let zIndex = window.document.defaultView!.getComputedStyle(modalRef).getPropertyValue('z-index'); |
|
|
|
|
|
|
|
|
|
|
|
if (!zIndex || zIndex === 'auto') { |
|
|
|
|
|
this.renderer.setStyle(modalRef, 'z-index', 10000); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.updatePosition(); |
|
|
this.updatePosition(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -79,7 +85,7 @@ export class ModalPlacementDirective extends ResourceOwner implements AfterViewI |
|
|
const modalRef = this.element.nativeElement; |
|
|
const modalRef = this.element.nativeElement; |
|
|
const modalRect = this.element.nativeElement.getBoundingClientRect(); |
|
|
const modalRect = this.element.nativeElement.getBoundingClientRect(); |
|
|
|
|
|
|
|
|
if (modalRect.width === 0 || modalRect.height === 0) { |
|
|
if ((modalRect.width === 0 || modalRect.height === 0) && this.position !== 'full') { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|