mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(nav): zIndex in overlays
This commit is contained in:

committed by
Adam Bradley

parent
7201999674
commit
70f8a8e5eb
@ -1,4 +1,4 @@
|
||||
import { ComponentFactoryResolver, Directive, ElementRef, forwardRef, Inject, NgZone, Optional, Renderer, ViewContainerRef } from '@angular/core';
|
||||
import { ComponentFactoryResolver, Directive, ElementRef, forwardRef, Inject, Input, NgZone, Optional, Renderer, ViewContainerRef } from '@angular/core';
|
||||
|
||||
import { App } from '../app/app';
|
||||
import { Config } from '../../config/config';
|
||||
@ -12,7 +12,7 @@ import { TransitionController } from '../../transitions/transition-controller';
|
||||
* @private
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[overlay-portal]'
|
||||
selector: '[overlay-portal]',
|
||||
})
|
||||
export class OverlayPortal extends NavControllerBase {
|
||||
constructor(
|
||||
@ -38,4 +38,10 @@ export class OverlayPortal extends NavControllerBase {
|
||||
app.viewDidLeave.subscribe(this.dismissPageChangeViews.bind(this));
|
||||
}
|
||||
|
||||
@Input('overlay-portal')
|
||||
set _overlayPortal(val: number) {
|
||||
this._zIndexOffset = (val || 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user