Setting UIScrollView.scrollEnabled = NO doesn't automatically update contentOffset
| Originator: | avedesk | ||
| Number: | rdar://34808621 | Date Originated: | 04-Oct-2017 11:31 AM |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | Product Version: | 11.0.2 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When having a UIScrollView with scrollEnabled = NO (to not allow user scrolling), the contentOffset is not automatically adjusted for the insets, like when scrollEnabled = YES Steps to Reproduce: 1. have a UIScrollView inside a view controller with bars 2. set scrollEnabled = NO in viewDidLoad Expected Results: 1. The scrollview's contentOffset is set to the insets, so that the start of the scrollview is actually at where the contents starts Actual Results: 1. contentOffset stays at (0,0), content of the scrollview is behind the bars Version: 11.0.2 Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!