[ios] Fixed layout crash.

This commit is contained in:
Ilya Grechuhin 2016-11-01 12:51:26 +03:00 committed by Sergey Yershov
parent 0454220865
commit 37661ed84a

View file

@ -44,8 +44,13 @@
return;
self.noResultsBottomOffset.constant = keyboardHeight;
[self layoutIfNeeded];
if (self.superview)
[self layoutIfNeeded];
}
- (void)onKeyboardWillAnimate { [self layoutIfNeeded]; }
- (void)onKeyboardWillAnimate
{
if (self.superview)
[self layoutIfNeeded];
}
@end