Adjust join button content insets

This commit is contained in:
ismailgulek
2021-04-21 13:58:15 +03:00
parent ddfebb4384
commit 0386bca27f
2 changed files with 18 additions and 13 deletions
+2 -2
View File
@@ -1500,13 +1500,13 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
else
{
// show Join button
CallTileActionButton *button = [[CallTileActionButton alloc] initWithFrame:CGRectMake(0, 0, 81, 30)];
CallTileActionButton *button = [CallTileActionButton new];
[button setImage:[UIImage imageNamed:@"video_call"] forState:UIControlStateNormal];
[button setTitle:NSLocalizedStringFromTable(@"room_join_group_call", @"Vector", nil) forState:UIControlStateNormal];
[button addTarget:self
action:@selector(onVideoCallPressed:)
forControlEvents:UIControlEventTouchUpInside];
item.image = nil;
button.contentEdgeInsets = UIEdgeInsetsMake(4, 12, 4, 12);
item.customView = button;
item.enabled = YES;
}