LearnNewsExamplesServices
Frontmatter
id9527
titleGrid cells do not shrink on column resize drop due to minWidth constraint
stateClosed
labels
bugaigrid
assigneestobiu
createdAtMar 20, 2026, 2:14 PM
updatedAtMar 20, 2026, 2:16 PM
githubUrlhttps://github.com/neomjs/neo/issues/9527
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 20, 2026, 2:16 PM

Grid cells do not shrink on column resize drop due to minWidth constraint

Closed v12.1.0 bugaigrid
tobiu
tobiu commented on Mar 20, 2026, 2:14 PM

Description

When making a grid column narrower using the resizable handles, the header button shrinks correctly, but the grid cells below do not shrink.

This occurs because grid.Row initializes cells with minWidth: ${column.width}px. When grid.header.Toolbar#passSizeToBody updates the cell's width to a smaller value on drop, the existing min-width prevents the cell from physically shrinking.

Goal

  • Update grid.Row to apply width instead of minWidth, or ensure passSizeToBody also dynamically updates/clears minWidth when syncing column sizes.
tobiu added the bug label on Mar 20, 2026, 2:14 PM
tobiu added the ai label on Mar 20, 2026, 2:14 PM
tobiu added the grid label on Mar 20, 2026, 2:14 PM
tobiu assigned to @tobiu on Mar 20, 2026, 2:15 PM
tobiu referenced in commit 829c103 - "fix(grid): use width instead of minWidth for cell sizing (#9527) on Mar 20, 2026, 2:16 PM
tobiu
tobiu Mar 20, 2026, 2:16 PM

Input from Gemini 3.1 Pro:

✦ Fixed in commit 829c10317. Replaced minWidth with width inside src/grid/Row.mjs cell creation logic. Grid cells now shrink appropriately when column resize drops happen.

tobiu closed this issue on Mar 20, 2026, 2:16 PM