[4.0] Set size of a new visual in visual replacement case