Fix chat input bugs. Fix iOS 7 contentsize bug