Make sure the location is set before showing the window to ensure the first appearance is animated correctly, too. BUG: 447096 (cherry picked from commit 5bc7efd0) (cherry picked from commit eb44145d)