Skip to content

feat: upgraded gridstack to v12#151

Merged
kevinhinterlong merged 1 commit into
yahoo:masterfrom
FilipKujavec:feature/upgrade-to-gridstack-v12
Jun 2, 2025
Merged

feat: upgraded gridstack to v12#151
kevinhinterlong merged 1 commit into
yahoo:masterfrom
FilipKujavec:feature/upgrade-to-gridstack-v12

Conversation

@FilipKujavec
Copy link
Copy Markdown
Contributor

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

this.items.forEach(({ id, options }) => {
assert.dom(`[data-id="${id}"]`).hasAttribute('gs-x', `${options.x}`, 'Initial grid-stack-item layout is correct');
assert.dom(`[data-id="${id}"]`).hasAttribute('gs-y', `${options.y}`, 'Initial grid-stack-item layout is correct');
if (options.x === 0) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

gs-* attributes now get removed if their value is the default/min size

.doesNotHaveAttribute('gs-y', 'Updating a grid-stack-item leaves unaffected items the same');

assert.dom(`[data-id="1"]`).hasAttribute('gs-x', '2', 'Updating a grid-stack-item updates moves the item');
assert.dom(`[data-id="1"]`).doesNotHaveAttribute('gs-x', 'Updating a grid-stack-item updates moves the item');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

gridstack's update() function now calls nodeBoundFix() which leads to the item being moved before being resized like before

@FilipKujavec FilipKujavec marked this pull request as ready for review May 22, 2025 14:56
@FilipKujavec
Copy link
Copy Markdown
Contributor Author

@kevinhinterlong could you take a look at this PR?

@kevinhinterlong kevinhinterlong self-assigned this Jun 2, 2025
Copy link
Copy Markdown
Member

@kevinhinterlong kevinhinterlong left a comment

Choose a reason for hiding this comment

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

Looks good, thank you @FilipKujavec!

@kevinhinterlong kevinhinterlong merged commit 4bbf2b6 into yahoo:master Jun 2, 2025
1 check passed
@yavin-bot
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

3 participants