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

fix!: only set top and left properties on drag #7970

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

DiegoCardoso
Copy link
Contributor

Description

Change the behavior of which properties the DialogDraggableMixin sets on drag. Before, the _startDrag listener would set the initial bounds using the top, left, width, and height values, which could cause some unexpected behaviors as described in #436. With this change, only the top and left properties are set when the user drags the Dialog overlay.

Warning

Marking it as a breaking change, as this could potentially create some unexpected behaviors, especially if the developer defines a size for the <vaadin-dialog-overlay> component as can be seen in more details on this comment.

Part of #1060
Fix #436

Type of change

  • Bugfix

Copy link

@DiegoCardoso DiegoCardoso merged commit b3e1a4f into main Oct 14, 2024
9 checks passed
@DiegoCardoso DiegoCardoso deleted the fix/dialog/drag-set-top-left branch October 14, 2024 15:46
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.beta1 and is also targeting the upcoming stable 24.6.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialog no longer resizes automatically after dragging.
5 participants