Skip to content

fix: avoid overlapping items in list-grid layouts - #264

Open
dvd233 wants to merge 1 commit into
antvis:mainfrom
dvd233:codex/fix-grid-variable-item-bounds
Open

dvd233 wants to merge 1 commit into
antvis:mainfrom
dvd233:codex/fix-grid-variable-item-bounds

Conversation

@dvd233

@dvd233 dvd233 commented Oct 9, 2026

Copy link
Copy Markdown

ListGrid uses the first item's bounds for every cell. For example, with list-grid-simple, a first item without a description and a second item with a two-line description, the second item's text overlaps the following row. Its remove button is also positioned using the shorter first item's height.

Measure every item with the same orientation used for rendering, size each row and column from its largest item, and place action controls using their associated item's bounds. Uniform grids keep their existing spacing. Add regression coverage for the built-in SimpleItem, varying dimensions, zigzag orientation, partial rows, single items, and empty data.

Related to #260: this addresses the grid sizing assumption only. It does not change the fixed-height card or quadrant behavior also described there.

Validation: all four structure test files passed (41 tests, including eight new grid regressions) with one worker. ESLint and Prettier passed on both changed files, as did source and regression-file TypeScript checks. A Chromium 143 comparison using full source bundles generated with esbuild reproduces overlapping text before the change and separated rows after it, with no page errors. The full package coverage suite, official Vite build, and site checks have not been run locally.

@dvd233

dvd233 commented Oct 18, 2026

Copy link
Copy Markdown
Author

Additional build validation for head e60b6f4, recorded on 2026-10-17: the official ESM, CJS, Vite UMD and size build steps all passed (npm run build, exit 0).

The retained build-result record gives 03:02:37.3846202Z to 03:03:16.1877627Z on that date as the build interval.

This head has no committed lockfile. The dependency resolution used for this run was retained, but the installation was not frozen-lockfile validation. This updates the official-build gap in the description. Full-package coverage and site checks are still not claimed.

This branch has not been deployed

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

Labels

None yet

1 participant