mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-15 15:59:26 +00:00
todo
This commit is contained in:
parent
135f92af1b
commit
cc6b566cdf
@ -2378,7 +2378,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)
|
||||
@ -2388,7 +2388,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