Layout problem on back from RoomSearchViewController, fixes #3073

Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
ismailgulek
2020-04-11 00:01:57 +03:00
parent 6a5a74eaf5
commit 941627fca3
@@ -120,6 +120,18 @@
[self updateSearch];
}
- (void)viewWillDisappear:(BOOL)animated
{
if (!self.searchBarHidden && self.extendedLayoutIncludesOpaqueBars)
{
// if a search bar is visible, navigationBar height will be increased. Below code will force update layout on previous view controller.
[self.navigationController.view setNeedsLayout]; // force update layout
[self.navigationController.view layoutIfNeeded]; // to fix height of the navigation bar
}
[super viewWillDisappear:animated];
}
#pragma mark -
- (void)setRoomDataSource:(MXKRoomDataSource *)roomDataSource