Added width/height measuring to text component