Skip to content

Commit

Permalink
Fixed #6857 - Remove moveOnTop from Dialog mousedown
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 13, 2018
1 parent 6dbeefa commit 6a6adaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/app/components/dialog/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
border: 0;
padding: .5em .75em;
background: none;
overflow: auto;
zoom: 1;
}

.ui-dialog-resizable .ui-dialog-content {
overflow: auto;
}

.ui-dialog .ui-resizable-se {
width: 14px;
height: 14px;
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let idx: number = 0;
@Component({
selector: 'p-dialog',
template: `
<div #container [ngClass]="{'ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow':true, 'ui-dialog-rtl':rtl,'ui-dialog-draggable':draggable}"
[ngStyle]="style" [class]="styleClass" [style.width.px]="width" [style.height.px]="height" [style.minWidth.px]="minWidth" [style.minHeight.px]="minHeight" (mousedown)="moveOnTop()"
<div #container [ngClass]="{'ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow':true, 'ui-dialog-rtl':rtl,'ui-dialog-draggable':draggable,'ui-dialog-resizable':resizable}"
[ngStyle]="style" [class]="styleClass" [style.width.px]="width" [style.height.px]="height" [style.minWidth.px]="minWidth" [style.minHeight.px]="minHeight"
[@animation]="{value: 'visible', params: {transitionParams: transitionOptions}}" (@animation.start)="onAnimationStart($event)" role="dialog" [attr.aria-labelledby]="id + '-label'" *ngIf="visible">
<div #titlebar class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top" (mousedown)="initDrag($event)" *ngIf="showHeader">
<span [attr.id]="id + '-label'" class="ui-dialog-title" *ngIf="header">{{header}}</span>
Expand Down

0 comments on commit 6a6adaa

Please sign in to comment.