Adjust content width/height calculation in AFPlatformHelper