resolve a problem about horizontal scrollbar in scrollpostion