Positioning Widget based on auto-fit box content (width) / javascript

Yes, the text box works just fine, it is just the value it returns that doesn’t match. I can upload the .rp file if that’s useful.