Steps to reproduce:
1. Create new Unity project
2. Open Search window (Window > Search > New window)
3. In search field type a term (for example Prefab or Scene)
4. Dock the window next to the Hierarchy or Inspector tab
5. Resize the Search window
Actual results: Errors
"InvalidOperationException: Sequence contains no elements"
and
"ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection"
are thrown in the Console, Search window becomes empty
Expected results: No errors are thrown in the Console when search window is resized
Reproducible with versions:
2023.2.10f1, 2023.2.13f1, 2023.3.0b10
Not reproducible with versions:
2022.3.19f1, 2023.2.9f1
Tested on (OS):
MacBook Pro, 2021 (Sonoma 14.2.1, Apple M1 Max) - Reproducible
Windows 11, Linux 22.04 - Not reproducible