fix #608 performance degradation when used padding in iOS 7