Use -traitCollectionDidChange: to detect size class changes
This is simpler than -viewWillTransitionToSize:withTransitionCoordinator: because all the logic is in one place, ContentSuggestionsHeaderView. Bug: 965964 Change-Id: Id990d4b91e07282f7ff985f529c5ad27856f0199 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626302Reviewed-by:Gauthier Ambard <gambard@chromium.org> Commit-Queue: Peter Lee <pkl@chromium.org> Cr-Commit-Position: refs/heads/master@{#662621}
Showing
Please register or sign in to comment