forked from organicmaps/organicmaps
[ios] Layout bug fix.
This commit is contained in:
parent
eb637cb3ef
commit
e779e18263
1 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,10 @@ using namespace storage;
|
|||
self.center = {superview.midX, superview.midY};
|
||||
[UIView animateWithDuration:kDefaultAnimationDuration animations:^
|
||||
{
|
||||
self.size = [self systemLayoutSizeFittingSize:UILayoutFittingCompressedSize];
|
||||
CGSize const newSize = [self systemLayoutSizeFittingSize:UILayoutFittingCompressedSize];
|
||||
if (CGSizeEqualToSize(newSize, self.size))
|
||||
return;
|
||||
self.size = newSize;
|
||||
self.center = {superview.midX, superview.midY};
|
||||
[self layoutIfNeeded];
|
||||
}];
|
||||
|
|
Loading…
Add table
Reference in a new issue