From b82341756b98df549cf6b7f1e94de702760e25e6 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 8 Jan 2019 22:34:34 +0400 Subject: [PATCH] Fix --- LegacyComponents/TGWallpaperController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LegacyComponents/TGWallpaperController.m b/LegacyComponents/TGWallpaperController.m index a284480b7c..9dc05bd52f 100644 --- a/LegacyComponents/TGWallpaperController.m +++ b/LegacyComponents/TGWallpaperController.m @@ -49,7 +49,7 @@ _wallpaperInfo = wallpaperInfo; _thumbnailImage = thumbnailImage; - [self setTitleText:TGLocalized(@"Wallpaper.Wallpaper")]; + [self setTitleText:TGLocalized(@"BackgroundPreview.Title")]; self.automaticallyManageScrollViewInsets = false; } @@ -246,7 +246,7 @@ _setButton.frame = CGRectMake(_cancelButton.frame.origin.x + _cancelButton.frame.size.width + separatorWidth, 0, CGFloor(_panelView.frame.size.width / 2), 49.0f); - _separatorView.frame = CGRectMake(CGFloor(_panelView.frame.size.width / 2) - separatorWidth, 0, separatorWidth, 49.0f); + _separatorView.frame = CGRectMake(CGFloor(_panelView.frame.size.width / 2) - separatorWidth, 0, separatorWidth, 49.0f + self.controllerSafeAreaInset.bottom); } - (void)controllerInsetUpdated:(UIEdgeInsets)previousInset @@ -254,6 +254,9 @@ [super controllerInsetUpdated:previousInset]; _panelView.frame = CGRectMake(0, self.view.bounds.size.height - 49.0f - self.controllerSafeAreaInset.bottom, self.view.bounds.size.width, 49.0f + self.controllerSafeAreaInset.bottom); + + CGFloat separatorWidth = TGScreenPixel; + _separatorView.frame = CGRectMake(CGFloor(_panelView.frame.size.width / 2) - separatorWidth, 0, separatorWidth, 49.0f + self.controllerSafeAreaInset.bottom); } - (BOOL)shouldAutorotate