Update the position of the popup when the parent is moved or resized.