Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FlexibleHeader] Ensures the frame is correct under UIKit for Mac (#7668
) When running under UIKit for Mac, the window size may not match the value returned by `[UIScreen mainScreen].bounds` when `commonMDCFlexibleHeaderViewControllerInit` was called, so the width is updated when the view controller is added to a parent view controller. This change is wrapped with a `#if` test so that it will only affect UIKit for Mac. It should never be necessary on iOS devices and it's possible that there are existing users who modify the frame and do not expect it to be changed after initialisation. If this (presumably unlikely) regression is acceptable then the platform tests could be removed. closes #7667 Video showing corrected behaviour: https://www.dropbox.com/s/xc6mxofzey1m78q/FlexibleBarGood.mov?dl=0
- Loading branch information