mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 03:44:26 +02:00
The user avatar did not keep its aspect ratio
This commit is contained in:
@@ -76,6 +76,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:logoutBtn];
|
||||
|
||||
// keep the aspect ratio of the contact thumbnail
|
||||
// scale it to fit the button frame
|
||||
[[self.userPicture imageView] setContentMode: UIViewContentModeScaleAspectFill];
|
||||
[[self.userPicture imageView] setClipsToBounds:YES];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user