Yeah its a weird thing to do, but its a way to get the correct size and position of the alert. So there is no need to do calculations of the position