Skip to content

Conversation

Ostrenkiy
Copy link
Contributor

Задача: #APPS-1924

Описание:
Делаем tableView.invalidateIntrinsicContentSize() после tableView.reloadData(), чтобы лишний раз пересчиталась высота таблицы. Теперь все работает хорошо.

@Ostrenkiy Ostrenkiy added the main label Jul 6, 2018
@Ostrenkiy Ostrenkiy added this to the 1.63 milestone Jul 6, 2018
@Ostrenkiy Ostrenkiy self-assigned this Jul 6, 2018
@Ostrenkiy Ostrenkiy requested a review from kvld July 6, 2018 13:24
self.tableView.reloadData()
DispatchQueue.main.async {
self.tableView.invalidateIntrinsicContentSize()
self.view.layoutSubviews()
Copy link
Contributor

Choose a reason for hiding this comment

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

You should not call this method directly. If you want to force a layout update, call the setNeedsLayout() method instead to do so prior to the next drawing update. If you want to update the layout of your views immediately, call the layoutIfNeeded() method.

@Ostrenkiy Ostrenkiy merged commit 32eb522 into dev Jul 9, 2018
@Ostrenkiy Ostrenkiy deleted the fix/fill-blanks-bug branch July 9, 2018 16:09
@kvld kvld mentioned this pull request Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants