fix for viewing the same file in two screens border cases