[987797] Used measureText to set the appropriate width