Updated inset calculation to use UIScrollView frame rather than bounds.