mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
MESSENGER-5203 change image position
This commit is contained in:
@@ -56,11 +56,13 @@
|
||||
// scale and new with federation icon
|
||||
float scaleFactor = ((self.roomAvatar.frame.size.height * 0.34) / self.federationImage.size.height);
|
||||
float imageWidth = scaleFactor * self.federationImage.size.width;
|
||||
// offset federation icon
|
||||
float offset = 3 * scaleFactor;
|
||||
// offset federation icon
|
||||
float offsetTrailing = 3 * scaleFactor;
|
||||
float offsetBotom = 1;
|
||||
|
||||
|
||||
[self.federationImageView.bottomAnchor constraintEqualToAnchor:self.roomAvatar.bottomAnchor constant:0].active = YES;
|
||||
[self.federationImageView.trailingAnchor constraintEqualToAnchor:self.roomAvatar.trailingAnchor constant:offset].active = YES;
|
||||
[self.federationImageView.bottomAnchor constraintEqualToAnchor:self.roomAvatar.bottomAnchor constant:offsetBotom].active = YES;
|
||||
[self.federationImageView.trailingAnchor constraintEqualToAnchor:self.roomAvatar.trailingAnchor constant:offsetTrailing].active = YES;
|
||||
[self.federationImageView.heightAnchor constraintEqualToConstant:(self.roomAvatar.frame.size.height * 0.34)].active = YES;
|
||||
[self.federationImageView.widthAnchor constraintEqualToConstant:imageWidth].active = YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user