-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 Virtualization Problem #17635
Comments
When I do this:
then Expander works as expected but there is a performance impact so we cannot use this workaround in production. So there is a problem with virtualization in combination with Expander variable height. |
Yeah virtualizing different ItemSizes is already a nightmare. And if Items can change their size, this makes it not easier. You may want to clone source and add some breakpoints in ArrangeOverride if it gets even hit and if so, if size was maybe wrong catched. |
Is there any estimate for fixing this? Avalonia v11.2.2 is unusable with this, switching off the virtualization is not an option for the production environment. Thank you. |
Hi @spacilv You can do 3 things:
|
@spacilv I fail to understand the attached sample. It shows some custom blur effect. Could it be you uploaded a wrong repro? |
My bad, here is the correct one. We also encountered problem with publishing the app with Avalonia 11.2.2 under release configuration for win-x86 platform, we are getting app crash right after the start (11.0.13 version is ok): Crash report: Exception code is Stack Overflow. This is the publish command: dotnet publish When we change the configuration from release to debug within the publish command then the app works fine. x64 works fine with both release and debug configuration. When we run the app from MS Visual Studio in release/x86 then everything is also ok. We do not have the minimal repro yet. |
Describe the bug
Hi,
I updated from Avalonia UI v11.0.11 to 11.2.2 and discovered bug with ListBox which is maybe somehow connected to virtualization of items. Item is an expander, first bunch of visible expanders works as expected (click on header expand the item) but when I scroll down within the list where item virtualization tooks place then expanders stop working randomly. Sometimes the expander expands, sometimes not, sometimes the scroll jumps up/down after the click on expander header (see attached gif).
Minimal sample:
TestApp.zip
To Reproduce
Expected behavior
Expander expands and does not matter where is the item placed within ListBox
Avalonia version
11.2.2
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: