mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 15:09:31 +02:00
Merge branch 'feature/5203_us01_add_federation_room_overview' into 'develop'
MESSENGER-5203 change image position See merge request bwmessenger/bundesmessenger/bundesmessenger-ios!253
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