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: resize only on direction of drag move #8222

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

ugur-vaadin
Copy link
Contributor

Description

This PR fixes the flicker on drag resize by only allowing resize if the drag direction is the same with the resize direction.

Fixes #7950

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/pr
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

Copy link

@@ -323,6 +349,99 @@ describe('dashboard - widget resizing', () => {
]);
});

(isSafari ? it.skip : it)('should resize only when dragged in the same direction (top -> bottom)', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason this test fails on Safari. When manually testing, it seems to work.

@ugur-vaadin ugur-vaadin merged commit f83bfc2 into main Nov 26, 2024
9 checks passed
@ugur-vaadin ugur-vaadin deleted the fix-resize-only-on-direction-of-drag-move branch November 26, 2024 07:57
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.beta3 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.

[dashboard] Panel height is not stable when drag resizing [1 day]
3 participants