Skip to content

Commit efb1be0

Browse files
committed
Fix issue where the NRV wasn’t updating sometimes when the search string changed.
1 parent 1ec7796 commit efb1be0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WordPress/Classes/ViewRelated/Aztec/Stock Photos/NoResultsViewController+StockPhotosPicker.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ extension NoResultsViewController {
1515
attributedSubtitle: attributedSubtitle(),
1616
image: Constants.imageName,
1717
accessoryView: nil)
18+
19+
view.layoutIfNeeded()
1820
}
1921

2022
private func attributedSubtitle() -> NSAttributedString {
@@ -31,6 +33,8 @@ extension NoResultsViewController {
3133
attributedSubtitle: nil,
3234
image: Constants.imageName,
3335
accessoryView: nil)
36+
37+
view.layoutIfNeeded()
3438
}
3539

3640
func configureAsNoSearchResults(for string: String) {
@@ -40,6 +44,8 @@ extension NoResultsViewController {
4044
attributedSubtitle: nil,
4145
image: Constants.imageName,
4246
accessoryView: nil)
47+
48+
view.layoutIfNeeded()
4349
}
4450

4551
private func configureSearchResultTitle(for string: String) -> String {

0 commit comments

Comments
 (0)