[Bugfix] Corrected the problem that layout gets out of shape with iOS8 SDK.