File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export class DateTimePickerStyle extends DateTimePickerStyleBase {
13
13
export class DateTimePicker extends DateTimePickerBase {
14
14
public static PICKER_DEFAULT_MESSAGE_HEIGHT = 192 ;
15
15
public static PICKER_WIDTH_INSETS = 16 ;
16
+ public static PICKER_WIDTH_PAD = 304 ;
16
17
public static PICKER_DEFAULT_TITLE_OFFSET = 26.5 ;
17
18
public static PICKER_DEFAULT_TITLE_HEIGHT = 16 ;
18
19
public static PICKER_DEFAULT_MESSAGE = "\n\n\n\n\n\n\n\n\n" ;
@@ -72,7 +73,8 @@ export class DateTimePicker extends DateTimePickerBase {
72
73
const alertController = UIAlertController . alertControllerWithTitleMessagePreferredStyle (
73
74
alertTitle , DateTimePicker . PICKER_DEFAULT_MESSAGE , UIAlertControllerStyle . ActionSheet ) ;
74
75
const alertSize = Math . min ( alertController . view . frame . size . width , alertController . view . frame . size . height ) ;
75
- const pickerViewWidth = alertSize - DateTimePicker . PICKER_WIDTH_INSETS ;
76
+ const pickerViewWidth = UIDevice . currentDevice . userInterfaceIdiom === UIUserInterfaceIdiom . Pad ?
77
+ DateTimePicker . PICKER_WIDTH_PAD : alertSize - DateTimePicker . PICKER_WIDTH_INSETS ;
76
78
77
79
let pickerContainerFrameTop = DateTimePicker . PICKER_DEFAULT_TITLE_OFFSET ;
78
80
if ( options . title ) {
You can’t perform that action at this time.
0 commit comments