Solid – Virtualizing with a container using max-height doesn't show all items when total height is below max-height
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
- Domínio
- frontend
Direção de pesquisa
Abra primeiro a reprodução vinculada do CodeSandbox e inspecione o comportamento do virtualizer quando cinco itens são redimensionados para 198px dentro de um contêiner com max-height de 1000px. Acompanhe a integração do Solid a partir dessa reprodução e verifique se todos os cinco itens são retornados e renderizados quando a altura total deles é menor que max-height.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
I have a dynamically sized virtual list whose container scroll element has a max-height style. This way, the container should shrink to the full list of items without needing a scrollbar if all of the items can fit below the max-height value.
However, this breaks in Solid. When the total size of the list approaches the max-height or exceeds it, only some of the items are shown.
See this example, where I have 5 items with an initial estimated size of 28px. Then I dynamically update the item size to be 198px. This adds up to a total height of 990px;. In this image, the container has a max-height of 1000px. Despite having enough room to fit everything, only 2 virtual items are returned by the virtualizer:
See reproduction here: https://codesandbox.io/p/devbox/competent-tristan-7467c3
Your minimal, reproducible example
https://codesandbox.io/p/devbox/competent-tristan-7467c3
Steps to reproduce
- go to https://codesandbox.io/p/devbox/competent-tristan-7467c3
- See that not all items are drawn
Expected behavior
If the max-height exceeds the total height needed to show all items, all items should be shown.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
OSX Chrome
tanstack-virtual version
3.10.8
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
- Linguagem predominante
- TypeScript
- Estrelas
- 7.1k
- Forks
- 478
- Merge médio
- 1d 2h
- PRs com merge (30d)
- 34
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TanStack/virtual
-
anchorTo: 'end' loses the end when the scroll element shrinksTalvez já em andamento @langleyd assumiu há 15 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
marko-virtual: scrollToEnd during an in-flight prepend strands the view one prepend above the bottom (chat-pretext e2e fails on CI)Talvez já em andamento @prayaggaikwad96 assumiu há 9 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
TanStack/virtual#1252 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
lit-virtual: VirtualizerController never applies updated options after constructionTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 45/100
Mantenedores costumam responder em até 1 dia
-
Dynamic sizes lit demo crashes/ loads very slowlyTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
TanStack/virtual#1188 · 11 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de TanStack/virtual
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Automattic/data-liberation-agent#953 ·
Mantenedores costumam responder em até 1 dia
-
README に GitHub の組織のバッジを足すAbertadocumentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
funmary-app/funmary#399 ·
Mantenedores costumam responder em até 1 dia
-
area:curator enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
CassioDalla/Scrinalia#150 ·
Mantenedores costumam responder em até 1 dia
-
status: needs-triage v1-bug-bash
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
a2ui-project/a2ui#3533 ·
Mantenedores costumam responder em até 1 dia
-
backend enhancement priority:P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
geolens-io/geolens#3310 ·
Mantenedores costumam responder em até 1 dia