Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct comment
  • Loading branch information
eliasmalik committed Dec 16, 2025
commit 995ecafbb85ddf60cbd5ba7a35a49e68064b5047
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ export class ColumnAutosizeService extends BeanStub implements NamedBean {
colsToNotSpread.push(column);
};

const currentWidths: Partial<Record<string, number>> = {};

// resetting cols to their original width makes the sizeColumnsToFit more deterministic,
// rather than depending on the current size of the columns. most users call sizeColumnsToFit
// immediately after grid is created, so will make no difference. however if application is calling
// sizeColumnsToFit repeatedly (eg after column group is opened / closed repeatedly) we don't want
// the columns to start shrinking / growing over time.
//
// We skip this reset when `onlyScaleUp` is true (i.e. when scaling up auto-sized columns), because
// we could otherwise end up in a position where those columns could shrink again.
const currentWidths: Partial<Record<string, number>> = {};
for (const column of colsToSpread) {
if (params?.onlyScaleUp) {
// When `onlyScaleUp`, we store the current widths to act as a true minimum because we don't
// want any columns to get smaller
currentWidths[column.getColId()] = column.getActualWidth();
}
column.resetActualWidth(source);
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.