Skip to content

fix: reset grid column width when setWidth(null) is called#9738

Closed
web-padawan wants to merge 2 commits into
mainfrom
claude/issue-6811-20260714-0713
Closed

fix: reset grid column width when setWidth(null) is called#9738
web-padawan wants to merge 2 commits into
mainfrom
claude/issue-6811-20260714-0713

Conversation

@web-padawan

Copy link
Copy Markdown
Member

Calling Column.setWidth(null) set the web component's width property to null instead of removing it, causing the column to render with a very large width rather than its default. Now a null width removes the property.

Fixes #6811


🤖 Generated with Claude Code

Column.setWidth(null) set the width property to null instead of
removing it, which caused the column to render with a very large
width. Now a null width removes the property so the column falls
back to its default width.

Co-authored-by: Serhii Kulykov <10589913+web-padawan@users.noreply.github.com>

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

✅ Nothing to flag — the changes look good.

@vaadin vaadin deleted a comment from github-actions Bot Jul 14, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

💡 Need a hand with PR review? Try Gitar by Sonar!

@sissbruecker sissbruecker added this pull request to the merge queue Jul 14, 2026
@web-padawan web-padawan removed this pull request from the merge queue due to a manual request Jul 14, 2026
@web-padawan

web-padawan commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

Looks like this might not be a proper fix. The issue is that width on the web component is not reset to 100px.
We might want to modify WC to fall back to the default value when null or undefined is set. Closing.

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.

Cannot reset column width of a grid

3 participants