mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
todo
This commit is contained in:
parent
ce504c95b6
commit
e490a29a37
@ -2390,7 +2390,7 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
|
||||
return CGSize(width: 256.0, height: 256.0)
|
||||
}
|
||||
return size
|
||||
})
|
||||
}/*, TODO(swiftgram): fillWidth: SGSimpleSettings.shared.wideChannelPosts */)
|
||||
// MARK: Swiftgram
|
||||
if innerSize.height > maxSize.height, maxDimensions.width != layoutConstants.image.maxDimensions.width {
|
||||
maxDimensions.width = max(round(maxDimensions.width * maxSize.height / innerSize.height), layoutConstants.image.maxDimensions.width)
|
||||
@ -2400,7 +2400,7 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
|
||||
return CGSize(width: 256.0, height: 256.0)
|
||||
}
|
||||
return size
|
||||
})
|
||||
}/*, TODO(swiftgram): fillWidth: SGSimpleSettings.shared.wideChannelPosts */)
|
||||
}
|
||||
|
||||
let framesAndPositions = innerFramesAndPositions.map { ($0.0.offsetBy(dx: layoutConstants.image.bubbleInsets.left, dy: layoutConstants.image.bubbleInsets.top), $0.1) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user