I have a small vertical grid with 3 buttons. Depending on certain occasions i disable some of them and then call UIGrid.Reposition(). UIGrid settings are: Arrangement vertical, cell width/height 100, pivot center, sorting none, smooth true, hide inactive true. The object holding the uigrid also has tween transform (if that might affect anything)
So for some reason once i disable second two buttons, and then later enable them they overlap each other
something like this
1:x=100
2:x=0
3:x=-100
#later
1:x=0
2:disabled
3:disabled
#later or #
1:x=0 1:x=0
2:x=-50 2:x=0
3:disabled 3:x=-100
I tried:
Calling .Reposition() in update
Calling .Reposition() after enabling/disabling
Calling .repositionNow to true in both cases
Setting button.transform.position -> it moves the z: to about -42000 (or some other large number)
Do you have any solution that might fall on your mind? I have tried searching at various places. havent really found a good solution