squimer / DatePickerDialog-iOS-Swift

Date picker dialog for iOS
MIT License
581 stars 177 forks source link

Fixed wrong height on compact size classes #40

Closed leonluc-dev closed 7 years ago

leonluc-dev commented 7 years ago

Forces the height of the date picker to 216 points to prevent smaller height on compact height size classes.

Whenever the dialog is shown while in a compact height size class (for example in landscape mode on smaller phones) the DatePicker invokes its default behaviour of autoresizing its height to 162 points on initialisation. Since the dialog is build with the expectation of a 216 point DatePicker this smaller DatePicker looks out place.

The fix for this is to explicitly set the DatePicker height to 216.

lfarah commented 7 years ago

Thanks @gameleon-dev! I already pushed to CocoaPods 😉