jsdotlua / jsdotlua/virtualized-list-lua

CanvasSize does not change as expected when removing items while using `overrideAutomaticCanvasSize`

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
32
Forks
4
PR merge metrics
No merged PRs in 30d

Description

When using overrideAutomaticCanvasSize, the CanvasSize is not updated when items are removed from the list. When the list is inverted or when overrideAutomaticCanvasSize is set to false, the CanvasSize is updated as expected.

Here's a repro:
https://gist.github.com/SolarHorizon/7db5ee3b4bf80c828070eb2be0582f81

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproduction and trace the CanvasSize behavior when items are removed while overrideAutomaticCanvasSize is enabled. Compare it with the inverted-list and overrideAutomaticCanvasSize=false cases. Done means CanvasSize updates correctly after removals in the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.