Skip to content

[WC-3280] DG: Fix unwanted scrollbar for cleared grids#2113

Draft
yordan-st wants to merge 2 commits intomainfrom
fix/WC-3280_DG-custom-content-bug
Draft

[WC-3280] DG: Fix unwanted scrollbar for cleared grids#2113
yordan-st wants to merge 2 commits intomainfrom
fix/WC-3280_DG-custom-content-bug

Conversation

@yordan-st
Copy link
Contributor

@yordan-st yordan-st commented Feb 25, 2026

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

  • Clearing a grid to 0 rows, would cause a unwanted recalculation of column widths, causing columns to overflow and in turn add scrollbars. This fix is aimed at making sure that: for empty grids the grid columns use the natural css grid layout instead of recalculating the column widths.

What should be covered while testing?

  • Add a tooltip with a small image in the header filter
  • Set the width of that column to auto-fit content and for min-width property try both auto and set by content
  • Observe if the column width change weirdly when adding / deleting a row.
  • Observe the same if you add / delete and then leave and return to the page.

- ensure column sizes are cleared for empty grids
@yordan-st yordan-st changed the title fix: keep custom content column headers visible when grid becomes empty [WC-3280] DG: Fix unwanted scrollbar for cleared grids Feb 25, 2026
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.

1 participant