primeng icon indicating copy to clipboard operation
primeng copied to clipboard

OverlayPanel | Close icon overflows in small screen (flipped)

Open AlejandraMorenoBS opened this issue 4 years ago • 2 comments

Describe the bug

When the overlapanel flips the space is not calculated properly and the close button is cut off.

Environment

6da08cf1-cdd6-4b2c-8cf6-026d014a1d77

Reproducer

No response

Angular version

13.0.2

PrimeNG version

13.3.1

Build / Runtime

Angular CLI App

Language

ALL

Node version (for AoT issues node --version)

16.13.0

Browser(s)

Chrome 103.0.5060.66, Firefox 97.0.2

Steps to reproduce the behavior

Open an overlaypanel with not enough space below so that it flips. Adjust the view port until the overlaypanel window fits in the space above the target but not the close icon.

Expected behavior

The close button should be taken into account when calculating the space the overlay needs.

AlejandraMorenoBS avatar Aug 08 '22 14:08 AlejandraMorenoBS

It's very easy to reproduce it using the PrimeNG overlaypanel example: https://stackblitz.com/edit/primeng-overlaypanel-demo. Shrink the browser in height and the button icon will be cut off. 610_511_1

AlejandraMorenoBS avatar Aug 08 '22 15:08 AlejandraMorenoBS

Great, many thanks!

AlejandraMorenoBS avatar Aug 09 '22 13:08 AlejandraMorenoBS