Skip to content

Commit

Permalink
Fixed #5893
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Jun 12, 2018
1 parent 88b29a1 commit 76c8d87
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {

@Input() minY: number = 0;

@Input() autoAlign: boolean = true;

@Input() focusOnShow: boolean = true;

@Input() maximizable: boolean;
Expand Down Expand Up @@ -164,8 +162,6 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {

initialized: boolean;

currentHeight: number;

maximized: boolean;

preMaximizeContentHeight: number;
Expand Down Expand Up @@ -208,21 +204,8 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {
if(this.focusOnShow) {
this.focus();
}
this.currentHeight = this.domHandler.getOuterHeight(this.containerViewChild.nativeElement);
this.executePostDisplayActions = false;
}
else if(this.autoAlign && this.visible && !this.maximized) {
this.zone.runOutsideAngular(() => {
setTimeout(() => {
let height = this.domHandler.getOuterHeight(this.containerViewChild.nativeElement);

if(height !== this.currentHeight) {
this.currentHeight = height;
this.positionOverlay();
}
}, 50);
});
}
}

focus() {
Expand Down

0 comments on commit 76c8d87

Please sign in to comment.