Various fixes

This commit is contained in:
Ilya Laktyushin
2020-11-12 20:12:00 +04:00
parent 8081430ad2
commit 40e28d769d
13 changed files with 138 additions and 138 deletions

View File

@@ -1026,7 +1026,7 @@ static id<LegacyComponentsContext> _defaultContext = nil;
- (CGFloat)navigationBarHeightForInterfaceOrientation:(UIInterfaceOrientation)orientation
{
static CGFloat portraitHeight = 44.0f;
static CGFloat portraitHeight = 56.0f;
static CGFloat landscapeHeight = 32.0f;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^
@@ -1035,13 +1035,13 @@ static id<LegacyComponentsContext> _defaultContext = nil;
CGFloat widescreenWidth = MAX(screenSize.width, screenSize.height);
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone && ABS(widescreenWidth - 736) > FLT_EPSILON)
{
portraitHeight = 44.0f;
landscapeHeight = 32.0f;
portraitHeight = 56.0f;
landscapeHeight = 56.0f;
}
else
{
portraitHeight = 44.0f;
landscapeHeight = 44.0f;
portraitHeight = 56.0f;
landscapeHeight = 56.0f;
}
});
bool large = UIInterfaceOrientationIsPortrait(orientation) || self.alwaysUseTallNavigationBarHeight;