fix new size/contentSize calculation