Reset the windows position if it is being replaced
Fixes the bug where it would be replaced as it is sliding out, but the position would not be reset (#42 (closed)):
After this change, the position is restored.
Fixes the bug where it would be replaced as it is sliding out, but the position would not be reset (#42 (closed)):
After this change, the position is restored.