Is there any solution for maintaining the scroll position of pages when navigating?

Using the scroll top measurement is not a good solution because the page is not restored to the exact position. When the scroll top value is stored and you navigate back to page while the device orientation is changed, the position is placed lower as the window size changed. I would like to know if anyone found a fix or solution. Thanks.