Skip to content
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

Listbox virtualized with zoom in/out (using LayoutTransformControl) issues #15712

Open
Whiletru3 opened this issue May 13, 2024 · 1 comment
Open
Labels

Comments

@Whiletru3
Copy link
Contributor

Describe the bug

If we use a ListBox with a LayoutTransformControl in the ListBoxItem to be able to zoom in/out, there are some issues :

  1. If I slide to an item, then zoom out and scroll to the first item, there are a space left before the first item :
    EmptySpaceUpAfterDezoom

  2. If I zoom out, select an item, then zoom in (until the selected item goes out of the viewport), the selected item will be still displayed with the old position
    SelectedItemFocusedMoveAtZoom

  3. at launch, there are one ListBoxItem realized, if I zoom out, of course more items will be realized. But if I zoom in again, the max number of ListBoxItem will remain (of course they will be empty). It should be better to flush those item.
    TooMuchListboxItemInTheRecyclerWhenDezoomZoom

To Reproduce

Here is the sample to reproduce :
https://github.com/Whiletru3/Avalonia/tree/VirtualizationImagesSample/samples/VirtualizationImages

Expected behavior

The ListBox should react normally using a LayoutTransformControl

Avalonia version

11.0.10, 11.1

OS

Windows, macOS

Additional context

No response

@Whiletru3 Whiletru3 added the bug label May 13, 2024
@Whiletru3
Copy link
Contributor Author

Do you have any clue (to make a PR) for the resolution of this bug ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant