One more shitty hack to get some bug out of the way

When the app recovers from a fullscreen window overlay, the frame of the navigation bar isn't updated properly, and causes some weird issues with the navbar, so we hard code the navbar height for now, and see what happens
This commit is contained in:
Mazyad Alabduljaleel 2014-11-04 17:01:31 +04:00
parent 116ff631cc
commit e658e03c0a
1 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,14 @@
self.view.center = self.expandedCenterValue;
[self.child expand];
#warning HACK - one more hack :(
if ([self.view isKindOfClass:[UINavigationBar class]]) {
CGRect newFrame = self.view.frame;
newFrame.size.height = MAX(44.f, newFrame.size.height);
self.view.frame = newFrame;
}
return amountToMove;
}