update scrollintoview with viewport margins