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