Merge pull request #2658 from igrechuhin/ig-master

[ios] Fixed migration view layout bug on iOS 7.
This commit is contained in:
Vlad Mihaylenko 2016-03-31 16:54:36 +04:00
commit 7b73202d0f

View file

@ -43,8 +43,7 @@
- (void)setFrame:(CGRect)frame
{
if (!isIOS7)
[self updateForSize:frame.size];
[self updateForSize:frame.size];
super.frame = frame;
}
@ -53,6 +52,7 @@
BOOL const hideImage = (self.imageHeight.multiplier * size.height <= self.imageMinHeight.constant);
self.titleImageOffset.priority = hideImage ? UILayoutPriorityDefaultLow : UILayoutPriorityDefaultHigh;
self.image.hidden = hideImage;
[self layoutIfNeeded];
}
- (void)configDefaultState