fix #41906: make screenshot mode rectangle appear within current view
Merge pull request #1519 from MarcSabatella/41906-screenshot-page

fix #41906: make screenshot mode rectangle appear within current view