MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

#696 Fix not all items visible in MatVirtualScroll

Open alexandreberton opened this issue 5 years ago • 4 comments

Fix wrong formula to allow to displayed all items when scrollviewer is visible

alexandreberton avatar Sep 21 '20 09:09 alexandreberton

@alexandreberton can you tell me the steps to recreate the issue? Thanks for contributing

enkodellc avatar Oct 07 '20 07:10 enkodellc

@alexandreberton Can you please explain issue? Maybe it's better to give example in http://blazorfiddle.com

SamProf avatar Nov 01 '20 17:11 SamProf

Hello. Sorry but I'm unable to give an example with http://blazorfiddle.com because matblazor part does not compile when I tryed.

What I did is pretty simple. Have a page with the MatVirtualScroll with heigh set to 100%. In this define itemtemplate with specific heigh (75px in my case). Have a lot of items in the list. When you scroll you will not be able to see many items. I just fixed the formula because in the code you move the scrollbar to the right position but you also decrease the size of the control which is not good. Hope it helps.

alexandreberton avatar Nov 02 '20 10:11 alexandreberton

I have the same issue, looking at the code he changed this an obvious bug and obvious bugfix. It shouldn't require a fiddle example.

Kylar182 avatar May 08 '21 22:05 Kylar182