fix content inset error when existing an navigation bar, change rotation handling