fixed toolbar position for ios

Refactored previous fix to consider sidebar:

Original pull request: https://github.com/mozilla/pdf.js/pull/3974

When triggering an orientation change (portrait to landscape) the value of window.scrollY is 20, resulting in the toolbar to be partially hidden. This issue observed on ios 7.0.4 safari.