mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various Fixes
This commit is contained in:
parent
7d523c4ef0
commit
8d4a729348
2 changed files with 4 additions and 5 deletions
|
|
@ -275,7 +275,7 @@ private final class ChatListFilterPresetListItemNode: ItemListRevealOptionsItemN
|
|||
}
|
||||
}
|
||||
strongSelf.editableControlNode = editableControlNode
|
||||
strongSelf.insertSubnode(editableControlNode, aboveSubnode: strongSelf.titleNode)
|
||||
strongSelf.insertSubnode(editableControlNode, aboveSubnode: strongSelf.containerNode)
|
||||
editableControlNode.frame = editableControlFrame
|
||||
transition.animatePosition(node: editableControlNode, from: CGPoint(x: -editableControlFrame.size.width / 2.0, y: editableControlFrame.midY))
|
||||
editableControlNode.alpha = 0.0
|
||||
|
|
|
|||
|
|
@ -247,7 +247,6 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
|||
|
||||
self.gridNode.visibleContentOffsetChanged = { [weak self] _ in
|
||||
self?.updateNavigation(transition: .immediate)
|
||||
self?.updateScrollingArea()
|
||||
}
|
||||
|
||||
self.hiddenMediaDisposable = (self.hiddenMediaId.get()
|
||||
|
|
@ -405,14 +404,14 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
|||
guard let (layout, _) = self.validLayout else {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
var tag: Int32?
|
||||
self.gridNode.forEachItemNode { itemNode in
|
||||
if let itemNode = itemNode as? MediaPickerGridItemNode {
|
||||
tag = itemNode.tag
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let dateString = tag.flatMap { self.scrollerTextForTag(tag: $0) }
|
||||
if self.currentScrollingTag != tag {
|
||||
self.currentScrollingTag = tag
|
||||
|
|
@ -420,7 +419,7 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
|||
self.scrollingArea.feedbackTap()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
self.scrollingArea.update(
|
||||
containerSize: layout.size,
|
||||
containerInsets: self.gridNode.gridLayout.insets,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue