diff --git a/src/app/components/overlaypanel/overlaypanel.ts b/src/app/components/overlaypanel/overlaypanel.ts index 9f4345617ef..fc7c167db9e 100755 --- a/src/app/components/overlaypanel/overlaypanel.ts +++ b/src/app/components/overlaypanel/overlaypanel.ts @@ -231,6 +231,10 @@ export class OverlayPanel implements AfterContentInit, OnDestroy { if (containerOffset.top < targetOffset.top) { DomHandler.addClass(this.container, 'p-overlaypanel-flipped'); + + if (this.showCloseIcon) { + this.container.style.marginTop = '30px'; + } } }