In my prototype, I have the username shown in the top bar with a dropdown arrow next to it:
John v
I allow the username to be updated dynamically, so I want the arrow to shift left or right accordingly. Right now, I am able to measure the number of characters in the name, but since I am not using a monotype font, it still doesn’t space accurately. Is there any way to do this better?
Edit: here is an example of what I am looking for with a poor solution.
https://u992em.axshare.com
Test.rp (50.7 KB)