bugfix N_SE-20966: adjust overlay viewport when rotation