mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-24 20:20:51 +00:00
Merge commit '8dadd307021f5a5a900e56b8adf81e96d558e63b'
This commit is contained in:
commit
b1371bf1ee
@ -595,7 +595,16 @@ extension ChatControllerImpl {
|
||||
self.dismissAllTooltips()
|
||||
|
||||
let insets = layout.insets(options: [.input])
|
||||
let location = CGRect(origin: CGPoint(x: layout.size.width - layout.safeInsets.right - 42.0 - UIScreenPixel, y: layout.size.height - insets.bottom - 122.0), size: CGSize())
|
||||
var screenWidth = layout.size.width
|
||||
if layout.metrics.isTablet {
|
||||
if layout.size.height == layout.deviceMetrics.screenSize.width {
|
||||
screenWidth = layout.deviceMetrics.screenSize.height
|
||||
} else {
|
||||
screenWidth = layout.deviceMetrics.screenSize.width
|
||||
}
|
||||
}
|
||||
|
||||
let location = CGRect(origin: CGPoint(x: screenWidth - layout.safeInsets.right - 42.0 - UIScreenPixel, y: layout.size.height - insets.bottom - 122.0), size: CGSize())
|
||||
|
||||
let tooltipController = TooltipScreen(
|
||||
account: self.context.account,
|
||||
|
Loading…
x
Reference in New Issue
Block a user