Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,20 @@ import Combine
content.refresh()
refreshTableViewHeaderLayout()

// TODO: Find a better fix.
// This is a workaround to get the recommended tags card to properly resize after reloading content on tab change.
// Even though the collection view layout returned the correct height, the cell somehow kept its original bounds.
//
// This workaround is limited only to the Discover feed, to prevent unwanted side effects on other tabs.
// Also because the recommended tags card is only shown in Discover.
if let topic = readerTopic,
RemoteFeatureFlag.readerImprovements.enabled(),
ReaderHelpers.topicIsDiscover(topic) {
DispatchQueue.main.async {
self.heightDidChange()
}
}

if synchronize {
syncIfAppropriate()
}
Expand Down