Call initWindowOrientation after resize