Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-table-growing): invalidate table onActivate #10952

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DonkeyCo
Copy link
Member

With PR #10949, invalidation is fixed. This uncovers an issue in TableGrowing (type: Scroll), where the growing button is not rendered.
This is due to the fact, that during initial rendering the table tries to figure out whether the table exceeds the scrollport, but this is not possible yet, as the feature is not active yet.

Forcing an invalidation of growing activation solves this issue.

@DonkeyCo DonkeyCo requested a review from aborjinik February 26, 2025 08:13
Comment on lines +150 to +152
if (this.type === TableGrowingMode.Scroll && !this._table) {
this._invalidateTable();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little confused Duc.

If this._table is not yet set how this._invalidateTable();is going to work? I guess these lines does nothing but then how tests are covering this?

you might probably set this._table in line 151 but can we somehow let the lines 168-170 handle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants