diff --git a/src/app/components/dynamicdialog/dynamicdialog.ts b/src/app/components/dynamicdialog/dynamicdialog.ts index 62f7c984564..0f80566b715 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.ts @@ -43,12 +43,37 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{ @Component({ selector: 'p-dynamicDialog', template: ` -
+
-
-
+
+
- {{ ddconfig.header }} -
+ {{ ddconfig.header }} +
-
+
-
+
{{ ddconfig.footer }} @@ -331,7 +361,7 @@ export class DynamicDialogComponent extends BaseComponent implements AfterViewIn for (let breakpoint in this.breakpoints) { innerHTML += ` @media screen and (max-width: ${breakpoint}) { - .p-dialog[${this.id}]:not(.p-dialog-maximized) { + .p-dialog[${this.attrSelector}]:not(.p-dialog-maximized) { width: ${this.breakpoints[breakpoint]} !important; } } @@ -351,6 +381,7 @@ export class DynamicDialogComponent extends BaseComponent implements AfterViewIn } ngAfterViewInit() { + super.ngAfterViewInit(); this.loadChildComponent(this.childComponentType!); this.ariaLabelledBy = this.getAriaLabelledBy(); this.cd.detectChanges();