Skip to content

Commit

Permalink
Fixed #2310
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Apr 13, 2017
1 parent 88245ef commit 664c228
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ export class Dialog implements AfterViewInit,OnDestroy {
container: HTMLDivElement;

contentContainer: HTMLDivElement;

positionInitialized: boolean;


constructor(public el: ElementRef, public domHandler: DomHandler, public renderer: Renderer) {}

@Input() get visible(): boolean {
Expand All @@ -139,10 +137,7 @@ export class Dialog implements AfterViewInit,OnDestroy {
show() {
this.onShow.emit({});

if(!this.positionInitialized) {
this.center();
this.positionInitialized = true;
}
this.center();

this.container.style.zIndex = String(++DomHandler.zindex);

Expand Down

0 comments on commit 664c228

Please sign in to comment.