Browse Source

mODAL FIX

pull/387/head
Sebastian Stehle 7 years ago
parent
commit
e5151eb176
  1. 1
      src/Squidex/app/framework/angular/forms/confirm-click.directive.ts
  2. 5
      src/Squidex/app/framework/angular/modals/modal-placement.directive.ts

1
src/Squidex/app/framework/angular/forms/confirm-click.directive.ts

@ -90,7 +90,6 @@ export class ConfirmClickDirective implements OnDestroy {
this.clickConfirmed.emit(); this.clickConfirmed.emit();
} }
event.stopPropagation();
event.preventDefault(); event.preventDefault();
} }
} }

5
src/Squidex/app/framework/angular/modals/modal-placement.directive.ts

@ -63,11 +63,10 @@ export class ModalPlacementDirective extends ResourceOwner implements AfterViewI
public ngAfterViewInit() { public ngAfterViewInit() {
const modalRef = this.element.nativeElement; const modalRef = this.element.nativeElement;
this.renderer.setStyle(modalRef, 'margin', '0');
this.renderer.setStyle(modalRef, 'position', 'fixed'); this.renderer.setStyle(modalRef, 'position', 'fixed');
this.renderer.setStyle(modalRef, 'z-index', '1000000');
this.renderer.setStyle(modalRef, 'right', 'auto');
this.renderer.setStyle(modalRef, 'bottom', 'auto'); this.renderer.setStyle(modalRef, 'bottom', 'auto');
this.renderer.setStyle(modalRef, 'margin', '0'); this.renderer.setStyle(modalRef, 'right', 'auto');
this.updatePosition(); this.updatePosition();
} }

Loading…
Cancel
Save