Add updateTextFormat on width and height change