snapshots: fix drawing offset for new border system. fixes #10228

(cherry picked from commit ab30ec4abd8c1bdf5e0b5e82479f86d1036b3622)