You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On iOS, when the phone is configured to have a contentSize of UIContentSizeCategoryAccessibilityLarge or bigger, this code handles adjusting the height
However, the title also is larger in the case and overlaps the date selections.
Expected behavior
The pickerBounds.size.height and pickerBounds.origin.y should both be adjusted to allow for additional height for the title.
To Reproduce
Add example code that reproduces the behavior.
exportdefaultclassAppextendsComponent{state={date: newDate()}render=()=><DatePickermodalmode="date"title={'Manufactured Date'}date={this.state.date}onDateChange={date=>this.setState({ date })}/>}
iPhone 7, iOS version 15.8.3, content size of UIContentSizeCategoryAccessibilityExtraExtraExtraLarge
Smartphone (please complete the following information):
OS: iOS
React Native version 0.72.12
react-native-date-picker version 5.0.7
Possible Workaround
This is what worked for us. I didn't submit it as a PR because of the drastic difference in height adjustments, but I can if it makes sense.
Describe the bug
On iOS, when the phone is configured to have a
contentSize
ofUIContentSizeCategoryAccessibilityLarge
or bigger, this code handles adjusting the heighthttps://github.com/henninghall/react-native-date-picker/blob/master/ios/RNDatePickerManager.mm#L83
However, the
title
also is larger in the case and overlaps the date selections.Expected behavior
The
pickerBounds.size.height
andpickerBounds.origin.y
should both be adjusted to allow for additional height for thetitle
.To Reproduce
Add example code that reproduces the behavior.
iPhone 7, iOS version 15.8.3, content size of
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge
Smartphone (please complete the following information):
Possible Workaround
This is what worked for us. I didn't submit it as a PR because of the drastic difference in height adjustments, but I can if it makes sense.
The text was updated successfully, but these errors were encountered: