Skip to content

React Aria Components - Popover adding unnecessary offset when used with animation #5195

Closed
@deebov

Description

@deebov

Provide a general summary of the issue here

As you can see in the codesandbox the popover is adding unnecessary offset. However, after you resize the window it get into the correct position without the offset. (You have to enable "Emulate a focused page" in the deb tools so that the popover does not hide when you resize).

CleanShot.2023-10-04.at.16.54.56.mp4

🤔 Expected Behavior?

The popover's edge should be the same as the trigger's respective to the placement (left, right, top, bottom, center).

😯 Current Behavior

The popover renders with a small offset.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

  1. Go to https://codesandbox.io/s/determined-dust-gx53rd?file=/src/styles.css
  2. Click the button
  3. And you should see that the popover is rendered with an offset.

Version

1.0.0-beta.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions