Dropdown ScrollView Scrollbar Handle is showing off of the scrollbar

I’m loading options in a Dropdown object dynamically. I first load it with one option in the Start() method, but then run a coroutine that takes 5-10 seconds to process a large set of information (1500+ records) to create a new set of options (Usually ends up being around 20-30 new options).

When the coroutine finishes running and assigns the new option list to the Dropdown’s options, the scrollbar handle when the dropdown is expanded shows up off of the scrollbar.

spiffyfelineakitainu

Does anyone know what might cause this?

The dropdown exists in the following hierarchy (GameObject objects are Empty GameObjects):
8667651--1167369--upload_2022-12-16_10-20-28.png

Content has a Vertical Layout Group and Content Size Fitter on it with the following configuration
8667651--1167375--upload_2022-12-16_10-21-20.png

Dropdown Component:

ScrollRect of the Template in the Dropdown object:

Scrollbar under Template:

Nevermind. It turns out I’m a moron. I don’t know when it happened, but the transform of the Sliding Area object in the template had been modified. So it didn’t matter if anything was added to the dropdown at all… it would always be offset.

Feel free to rebuke me.

1 Like

The UI stuff is generally pretty good about updating itself when needed.

Also, did you know you can see the actual source code for the UI stuff? It’s in your package cache, or you can view it on github. This is handy in case you wanna make your own variant.