Measure text width dynamically


#1

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)


#2

Axure doesn’t support this natively, but you can do this with a bit of a hack. See this thread for a method:


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.