mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user