Repository navigation
fix: account for the vertical scrollbar in column widths (backport #907) - #909
Merged
spike-rabbit merged 2 commits intoNov 27, 2026
Conversation
Measure the table width from the scroll container, excluding a visible vertical scrollbar, and recalculate the columns whenever the scrollbar appears or disappears. Previously the last column was cut off and a horizontal scrollbar appeared when the scrollbar showed up after load. Repeat the force mode distribution until no column is clamped to its min or max width, so the remaining columns absorb the delta. Use the actual scrollbar width of the scroll container to decide whether the columns bleed. Hide the horizontal overflow when only vertical scrolling is enabled. (cherry picked from commit f2f694a)
Only fill the fully visible rows with ghost rows and clamp the last rendered row index to the row count, so ghost loading no longer causes a vertical scrollbar. Apply the body height to the ghost loader overlay, so that it clips the rows that do not fit. (cherry picked from commit 4177f57)
mistrykaran91
marked this pull request as ready for review
November 27, 2026 05:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
Backport of #907 to
release/27.x. Closes #906.What is the new behavior?
ResizeObserver), so it excludes a visible vertical scrollbar and the columns are recalculated whenever the scrollbar appears or disappears.ScrollbarHelperandverticalScrollVisibleinputs are removed.Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
Cherry-picked from #907 (
-x), original author preserved. Differences frommainbecause of the 27.x code base:forceFillColumnWidthsinutils/math.ts(there is noforce-column-mode-strategy.tson 27.x); the two new unit tests live inmath.spec.ts.computeIndexesclamps withthis.rowCount()as there is nocontroller.rowCount()on 27.x.testing/resizing.tsfrom fix: account for the vertical scrollbar in column widths #907 are not included as they don't exist on 27.x.Tests:
npm run test:cipasses (201 passed, 1 skipped).header-cell.component.spec.tsfails to import with a vitest browser-mode error, which also happens on plainrelease/27.x.