Fix max content offset calculation when the content size is smaller than the content offset placement frame