diff --git a/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts b/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts index 8419294a9..8f75efeeb 100644 --- a/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts +++ b/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts @@ -68,6 +68,12 @@ export class ModalPlacementDirective extends ResourceOwner implements AfterViewI this.renderer.setStyle(modalRef, 'bottom', '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(); } @@ -79,7 +85,7 @@ export class ModalPlacementDirective extends ResourceOwner implements AfterViewI const modalRef = this.element.nativeElement; const modalRect = this.element.nativeElement.getBoundingClientRect(); - if (modalRect.width === 0 || modalRect.height === 0) { + if ((modalRect.width === 0 || modalRect.height === 0) && this.position !== 'full') { return; } diff --git a/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.html b/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.html index 1e5175886..510e462f3 100644 --- a/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.html +++ b/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.html @@ -1,4 +1,4 @@ - +
diff --git a/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts b/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts index cc1e55afa..dac338b4c 100644 --- a/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts +++ b/src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts @@ -58,7 +58,7 @@ export class OnboardingTooltipComponent extends StatefulComponent implements OnD if (this.for && this.helpId && Types.isFunction(this.for.addEventListener)) { this.own( timer(this.after).subscribe(() => { - if (this.onboardingService.shouldShow(this.helpId)) { + if (true || this.onboardingService.shouldShow(this.helpId)) { const forRect = this.for.getBoundingClientRect(); const x = forRect.left + 0.5 * forRect.width;