Hi, i’m not sure if there’s a toggle or some setting for this, but the default behaviour of the TMP dropdown is that it doesn’t clamp its area to the viewable window, which is not desired:
Is there any way to change this?
Hi, i’m not sure if there’s a toggle or some setting for this, but the default behaviour of the TMP dropdown is that it doesn’t clamp its area to the viewable window, which is not desired:
Is there any way to change this?
Do you get the same behavior with the UI DropDown?
Apparently not (exactly), the default dropdown changes direction based on the screen edges it seems, so when it’s at the bottom it ‘drops’ upwards, else downwards.
I’m currently working around it by subclassing TMP_Dropdown and overriding the CreateDropdownList method to attach a custom clamp behaviour. But making this behaviour toggleable requires also overwriting the DropDownEditor and adding custom properties to it. The custom clamping behaviour also has to be delayed by some frames to work correctly on the resulting dropdown element.
It would be nice if either there was builtin functionality or the default behaviour matched the default dropdown’s.