-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CIS-969] Date overlay jumps when loading more messages #1235
[CIS-969] Date overlay jumps when loading more messages #1235
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1235 +/- ##
==========================================
- Coverage 91.30% 91.28% -0.03%
==========================================
Files 218 218
Lines 9353 9353
==========================================
- Hits 8540 8538 -2
- Misses 813 815 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
c76b753
to
8a160ee
Compare
CHANGELOG.md
Outdated
@@ -44,6 +44,7 @@ _June 23, 2021_ | |||
### 🔄 Changed | |||
- `scrollToLatestMessageButton` is now visible every time the last message is not visible. Not only when there is unread message. [#1208](https://github.com/GetStream/stream-chat-swift/pull/1208) | |||
- `mediaPickerVC` in `ComposerVC` updated to show both photos and videos [#1194](https://github.com/GetStream/stream-chat-swift/pull/1194) | |||
- `ChatMessageListScrollOverlayView` moved outside the `ChatMessageListView`. Now it's managed by `ChatMessageListVC` [#1235](https://github.com/GetStream/stream-chat-swift/pull/1235) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include it to the thread view, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me add it 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ done. Please have a look
8a160ee
to
40ad59c
Compare
40ad59c
to
0d163c5
Compare
0d163c5
to
5d023d5
Compare
This PR fixed the issue when date overlay jumps when loading more but moving an overlay outside the list view.
Tried the following first:
preserveSuperviewLayoutMargins = true
and keep pinning toself.layoutMargins
superview.layoutMargins
directlycontentOffset.y
and none of it works 🚫. It seems
layoutMargins
follow the content size of table view when it changes and only after margins are updated to fit visible content area. Trying to follow thecontentOffset.y
would also involve following thecontentSize.height
which makes the logic of calculating the constraint too complicated.fixed-date-indicator.mp4