Bug 1022022 - Reset orientation when search window closing