mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 11:46:58 +02:00
The user avatar did not keep its aspect ratio.
This commit is contained in:
@@ -75,6 +75,10 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
[logoutBtn addTarget:self action:@selector(onButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:logoutBtn];
|
||||
|
||||
// keep the aspect ratio of the contact thumbnail
|
||||
[[self.userPicture imageView] setContentMode: UIViewContentModeScaleAspectFill];
|
||||
[[self.userPicture imageView] setClipsToBounds:YES];
|
||||
|
||||
errorAlerts = [NSMutableArray array];
|
||||
[[MatrixHandler sharedHandler] addObserver:self forKeyPath:@"isInitialSyncDone" options:0 context:nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user