Resize text label when the state size changes