Skip to content

Commit

Permalink
Fixed #11796 - OverlayPanel | Close icon overflows in small screen (f…
Browse files Browse the repository at this point in the history
…lipped)
  • Loading branch information
cetincakiroglu committed Aug 9, 2022
1 parent 0604be1 commit eb04fc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/components/overlaypanel/overlaypanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
}

Expand Down

0 comments on commit eb04fc6

Please sign in to comment.