Skip to content

Commit

Permalink
Apply height to main container as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed May 29, 2017
1 parent 3a005df commit dceee36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,12 @@ export class Dialog implements AfterViewInit,OnDestroy {
let newWidth = containerWidth + deltaX;
let newHeight = containerHeight + deltaY;

if(newWidth > this.minWidth)
if(newWidth > this.minWidth) {
this.containerViewChild.nativeElement.style.width = newWidth + 'px';
}

if(newHeight > this.minHeight) {
this.containerViewChild.nativeElement.style.height = newHeight + 'px';
this.contentViewChild.nativeElement.style.height = contentHeight + deltaY + 'px';
}

Expand Down

0 comments on commit dceee36

Please sign in to comment.