Using QVirtualScroll with a full height
-
I’m trying to use QVirtualScroll but all of the examples provided are with a fixed height, and this seems to be the only way to get it to work.
For example, please see https://codepen.io/josephd/pen/RwrEOWK
I have tried to change the
max-height: 300px;
into many other things includingmax-height: 100vh;
andmax-height: 100%;
– I have also triedmax-height: calc(100vh - 50px);
but none of these seem to give the desired result which is to have the QVirtualScroll filling the main page area.Can anyone tell me what I am doing wrong? Or perhaps I need to be looking at a different way of achieving what I want?
-
looks fine using max-height:100vh on my phone.