mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Layout problem on back from RoomSearchViewController, fixes #3073
Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user