3D Widget Scaling incorrectly

Hey I’ve been messing with this for almost a week now, tearing my hair out and not being able to find a solution. I have a 3D widget being drawn to the screen with an object it’s supposed to sit on and be attached to. However, the widget never scales correctly to be the exact size I want on the object. Is there anything I could do to fix it? I have included pictures of the problem and any help is appreciated.