How to stop widgets from squishing, stretching, and combining GUI elements when in a widget window

Hey Devforum,

I am currently trying to make a GUI widget for a plugin. The thing is since the widget is in a minimized small window all the icons ‘smoosh’ together and when scaling out the window they stretch. How can I stop this? I am very new to UI so I don’t know about aspect ratio constraints or any of that stuff, if you need pictures of the problem reply and I will post them here.

could you send some screenshots of what’s happening?

GUI:

Widget:
image

in ui, parenting is very important so could you send us how that’s doneas well?

image
very simply just like so

so my guess is that you wrote the position like {{0, 5}, {0, 5}}, instead of {{0.5, 0}, {0.5, 0}} is that right?