Merge pull request #5314 from igrechuhin/MAPSME-3752

[MAPSME-3752] [ios] Fixed search layout bug.
This commit is contained in:
Vlad Mihaylenko 2017-01-31 14:58:12 +03:00 committed by GitHub
commit 9e47ec4f3d

View file

@ -489,8 +489,13 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) {
}
else
{
if (searchBarView.superview == parentView)
if (searchBarView.superview)
{
[parentView bringSubviewToFront:contentView];
[parentView bringSubviewToFront:actionBarView];
[parentView bringSubviewToFront:searchBarView];
return;
}
[parentView addSubview:contentView];
[parentView addSubview:actionBarView];
[parentView addSubview:searchBarView];