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: manual virtual index adjustments #3843

Merged
merged 6 commits into from
May 13, 2022

Conversation

tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented May 12, 2022

Part of #1691

@tomivirkki tomivirkki marked this pull request as draft May 12, 2022 16:03
@tomivirkki tomivirkki force-pushed the fix-virtualizer-rows-visibility branch from 90de528 to 4e36c5e Compare May 12, 2022 16:05
@sonarcloud
Copy link

sonarcloud bot commented May 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Comment on lines +307 to +312
if (this._physicalCount !== 0) {
// After running super._scrollHandler, fix _virtualStart to workaround an iron-list issue.
// See https://github.com/vaadin/web-components/issues/1691
const reusables = this._getReusables(true);
this._virtualStart += reusables.indexes.length;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Just calling this._render() here would be enough to fix the issue, but to avoid unnecessary overhead, let's just run the minimal necessary subset of the function.

@tomivirkki tomivirkki marked this pull request as ready for review May 13, 2022 08:14
@web-padawan web-padawan merged commit d736621 into master May 13, 2022
@web-padawan web-padawan deleted the fix-virtualizer-rows-visibility branch May 13, 2022 09:38
tomivirkki added a commit that referenced this pull request May 13, 2022
Co-authored-by: Tomi Virkki <tomivirkki@users.noreply.github.com>
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
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.

None yet

3 participants