Unity Issue Tracker - List is Empty label appears even if the list is not empty
Fixed
UUM-127210
List is Empty label appears even if the list is not empty
Unity: UI Toolkit Controls
Fixed
6.5.X
Open the Search test project (Modules/QuickSearch/Tests/QuickSearch)
Open Search window
Open the left side panel
Press Lights_Reflection_probe query
Press the camera_only_scene query:
See that the List is Empty label is there while an item is already in the ListView.
What should happen?
"List is Empty" label should be removed.
What is happening?
We load our data asynchronously. We try to call RefreshItems as few times as possible
Since we fetch result asynchronously, the first time the view is refreshed it is empty. Thus the List Is Empty label appars.
Then our model accumulate some data though Refresh view is not called immediatly.
While loading the query, a reisze event is caught by the uitk listview and when the FixedHeightController notices that the amount of visible items is different than the model our item because bound. But the "list is empty Label" is never removed.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?