Skip to content

Fix bubble backgroundColor deranged when swipe#461

Closed
zhongwuzw wants to merge 1 commit intoMessageKit:developmentfrom
zhongwuzw:fix-message-deranged
Closed

Fix bubble backgroundColor deranged when swipe#461
zhongwuzw wants to merge 1 commit intoMessageKit:developmentfrom
zhongwuzw:fix-message-deranged

Conversation

@zhongwuzw
Copy link
Member

@zhongwuzw zhongwuzw commented Jan 15, 2018

TODO:

  • Add CHANGELOG

message bubble backgroundColor would deranged that operation the same as #448

message-color-bug

message-bubble-backcolor-disorder

@SD10 SD10 mentioned this pull request Mar 23, 2018
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
view.layoutIfNeeded()
messagesCollectionView.collectionViewLayout.invalidateLayout()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I haven't merged this is I'm a little concerned that the fix involves invalidating the layout on viewWillAppear. I have to check this one

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@nathantannar4
Copy link
Member

@zhongwuzw Is this still a bug?

@SD10
Copy link
Member

SD10 commented Aug 31, 2018

@nathantannar4 It likely is, but we can't solve it this way because invalidating the layout in this place is too heavy-handed

@nathantannar4
Copy link
Member

Perhaps just reload the cells at the visible index paths?

Sent with GitHawk

@zhongwuzw
Copy link
Member Author

Emm, a long time for this issue, but I tested a moment ago, I think the bug already fixed in #707 .

@SD10
Copy link
Member

SD10 commented Sep 1, 2018

We'll close this for now then 👍

@SD10 SD10 closed this Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments