Fix setting snap offset when element has no rect