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 1 commit 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.

@@ -144,6 +144,7 @@ class TableGrowing extends UI5Element implements ITableGrowing {
onTableActivate(table: Table): void {
this._table = table;
this._shouldFocusRow = false;
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.

this only needed for the Scroll mode right?

BTW shouldn't this be better handled after first rendering of the table after shadow dom of the table is ready?

A test would be nice.

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