-
Notifications
You must be signed in to change notification settings - Fork 22
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
Issues with cdk-virtual-scroll-viewport? #15
Comments
Any news on this one? |
@AndreasSchmid1 @nolafs But that said, I couldn't reproduce your problem. I did a fork from material's Stackblitz example and added an ellipsis there, which seems to work just fine: https://stackblitz.com/edit/angular-1smu3f 😃 I don't doubt however that in some context what you described will happen. That might be due to the resize detection strategy you use. Have you tried using a different one than the default (e.g. |
Try using templateCacheSize=0
As the View Recycling part on the documentation to see if it works... I've had some trouble, but setting the CacheSize to 0 solved my problems... |
I'm closing this issue since noone provided a failing sample (StackBlitz or likewise) and the sample I provided above seems to work without issues (Actually there was one minor issue: The |
I have still the same problem on mobile devices or if i use the chrome device simulation. "templateCacheSize: 0 " helps on scrolling down but scrolling up have the same flickering behavior like before. So i think it may be caused by my huge MatTreeFlatDataSource - only on mobile devices :( |
@schoste I don't think a large source could cause this - After all this is what virtual scroll is supposed to handle. But it's hard to tell without a code sample 🤔 I can only suggest that you try it with/without |
You are right @lentschi - it have nothing to do with the ngx-ellipsis. I have still the same behavior without it. It seems to be a Problem between the MatTreeFlatDataSource with expanded/collapsed Children and the CdkVirtualFor. |
I used this plugin already successfully in 2 different angular projects and it worked great.
I have now a project where i have to use the "cdk-virtual-scroll-viewport". As soon as i add "ellipsis" everything goes basically crazy. It starts flickering, order is wrong when scroll back up and so on.
The text was updated successfully, but these errors were encountered: