I have for example a Play/Pause button and would like its size not to change when I change the text from 'play' to 'pause' and back. Due to internationalization I don't know if 'play' or 'pause' will be the longer string..
I imagine I need to set the string to the longest string and then create the button allowing the UI to size it properly then get its height/width and set the height/width such that it doesn't resize when the button text is changed to the shorter string. But I'm not sure how/where in the code to do this or if there is an easier way to handle this automatically.