mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 03:16:05 +00:00
ios: moving content up when setting emoji on the first message (#5766)
This commit is contained in:
committed by
GitHub
parent
cd20dc0a04
commit
6020c6010d
@@ -345,7 +345,11 @@ class EndlessScrollView<ScrollItem>: UIScrollView, UIScrollViewDelegate, UIGestu
|
||||
if let visibleIndex {
|
||||
let v = oldVisible.remove(at: visibleIndex)
|
||||
if forceReloadVisible || v.view.bounds.width != bounds.width || v.item.hashValue != item.hashValue {
|
||||
let wasHeight = v.view.bounds.height
|
||||
updateCell(v.view, i, items)
|
||||
if wasHeight < v.view.bounds.height && i == 0 && shouldBeFirstVisible == i {
|
||||
v.view.frame.origin.y -= v.view.bounds.height - wasHeight
|
||||
}
|
||||
}
|
||||
visible = v
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user