Dropdown content out of bounds
Hi guys,
I am working on my settings menu for my game :)
I am having a problem. Whenever I open a dropdown the content is not centered inside the dropdown and as a result all options are not visible. When I scroll in the dropdown the content is centered and it can no longer go out of bounds. This happens for all my dropdowns. Does anyone know what could be wrong here.
THE BUG:
HOW IT SHOULD LOOK:
Open dropdown
All content is NOT visible (IMAGE 1 - This is the problem)
Hover dropdown with mouse and scroll
Content is centered and looks as it should (IMAGE 2) (until I open the dropdown again, then the same problem occurs)
Thank you in advance!
Answer by Jochitko · Mar 22, 2018 at 10:24 AM
I solved the issue by changing the dropdown component "Scroll Rect (Script)" - "Movement Type" from "Clamped" to "Elastic".
(I then restricted the scroll by changing the scroll sensitivity to 0, making it behave like the clamped one was supposed to).