Skip to content

Commit

Permalink
Fixed #5929
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Jun 20, 2018
1 parent 02d0360 commit 80fb775
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {
this.executePostDisplayActions = true;
this.moveOnTop();
this.bindGlobalListeners();

if(this.maximized) {
this.domHandler.addClass(document.body, 'ui-overflow-hidden');
}

if(this.modal) {
this.enableModality();
Expand Down Expand Up @@ -249,6 +253,10 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {
this.unbindMaskClickListener();
this.unbindGlobalListeners();
this.dragging = false;

if(this.maximized) {
this.domHandler.removeClass(document.body, 'ui-overflow-hidden');
}

if(this.modal) {
this.disableModality();
Expand Down Expand Up @@ -376,6 +384,8 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {
this.containerViewChild.nativeElement.style.height = this.preMaximizeContainerHeight + 'px';
this.contentViewChild.nativeElement.style.height = this.preMaximizeContentHeight + 'px';

this.domHandler.removeClass(document.body, 'ui-overflow-hidden');

this.maximized = false;

this.zone.runOutsideAngular(() => {
Expand Down

0 comments on commit 80fb775

Please sign in to comment.