fix bug caused by that iOS7 allows us to set negative value to content offset