Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel overlay position on a div with css transformations #15975

Closed
T005206 opened this issue Jul 8, 2024 · 1 comment
Closed

Panel overlay position on a div with css transformations #15975

T005206 opened this issue Jul 8, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@T005206
Copy link

T005206 commented Jul 8, 2024

Describe the bug

Hello, I am developing a map using the ReactFlow library. This library uses a div where it renders the map. It is possible to pan and zoom on the map, but it does so with CSS transformations. I am using PrimeReact's OverlayPanel, but I have encountered a problem. If the appendTo of the overlay is set to "self", it moves correctly with the map and applies the same zoom as the map since it is contained within a div to which the CSS transformation is applied. The problem is that it does not position correctly on the element that opens it. Is there any way to override the method PrimeReact uses to position the overlay and take into account the transformation of the parent container? Or, on the other hand, how could I position the element correctly if the container has a transformation? If the appendTo is set to the default, it positions correctly but becomes disconnected when panning or zooming the map.

Environment

Windows 10
Chrome Versión 126.0.6478.127

Reproducer

No response

Angular version

13

PrimeNG version

17

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@T005206 T005206 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 8, 2024
@mertsincan
Copy link
Member

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap?

Thanks a lot for your understanding!
Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants