Constant margin when changing size in gridContainer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tyrannicodin

I have a gridContainer ui object, with textureButtons as its children. I want the buttons to scale up when hovered, which works fine, but when they do so they move the other buttons that have not been scaled up. Is there any way to scale the buttons whilst keeping the positions of the other buttons the same?

an example of the issue

:bust_in_silhouette: Reply From: Enfyna

I dont know how you did the hover effect but if you want the buttons centered after scaling up I think the easiest solution would be to give every button a control node parent and making the control nodes minimum size the scaled up size you want.

For example :

When I click the button it scales up and doesnt bother the other nodes.