Attach label to component leaves them too far away

the attach label to component function leaves a lot of room between the label and the component.  Also the space between the component and the label acts "unaturally" during resizing for my purposes.  Whats the most reasonable way of dealing with this

Which method do you use to attach the label?


You could always look to see how is done and reimplement it, slightly modified from the original. It looks pretty simple.