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

Drag preview size differs from original element #129

Open
hungify opened this issue Jan 6, 2025 · 0 comments
Open

Drag preview size differs from original element #129

hungify opened this issue Jan 6, 2025 · 0 comments
Assignees

Comments

@hungify
Copy link

hungify commented Jan 6, 2025

With performance improvements in version 3.0.0, we now leverage the Popover API. However, the Drag Preview incorrectly calculates its dimensions and defaults to the browser's popover style.

This issue can be resolved by applying box-sizing: border-box to the Drag Preview element.

Why does it work in the documentation? Because the document globally applies the box-sizing: border-box style to all elements.

1001Record250106223458-edit.mov
@sashamilenkovic sashamilenkovic self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants