Improve timing for layout when orientation changed

Improve timing for layout when orientation changed