better support orientation change on mobile. #782