Skip to content

Conversation

@tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented Jun 3, 2021

This fixes a regression from #321

Seems that with very specific timing, it's possible to end up with a grid that has non-empty items but no visible rows. The bug was reported as part of a Lit project and I couldn't find a way to reproduce it without using Lit in the test as well.

The offending line was added a long time ago and doesn't seem to be relevant anymore. Only the virtualizer should be in charge of hiding/unhiding the body row elements.

@tomivirkki tomivirkki added the no-polymer Removing Polymer from Vaadin public APIs label Jun 3, 2021
@tomivirkki tomivirkki requested a review from vursen June 3, 2021 12:48
@tomivirkki tomivirkki marked this pull request as draft June 3, 2021 12:51
@tomivirkki tomivirkki marked this pull request as ready for review June 3, 2021 12:59
import '../vaadin-grid.js';
import { getPhysicalItems } from './helpers.js';

describe('renderig with lit', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rendering

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@tomivirkki tomivirkki force-pushed the lit-dynamic-columns branch from df84914 to 666a7b6 Compare June 4, 2021 06:43
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 4, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-polymer Removing Polymer from Vaadin public APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants