File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,14 @@ function createAlertController(options: DialogOptions & MDCAlertControlerOptions
251251 alertController . accessoryView = createUIViewAutoSizeUIViewAutoSize ( view ) ;
252252
253253 // if no title or message disable contentInsets to be like android
254- if ( ! options . title && ! options . message ) {
255- if ( alertController . view ) {
256- ( alertController . view as MDCAlertControllerView ) . contentInsets = UIEdgeInsetsZero ;
257- } else {
258- alertController . _disableContentInsets = true ;
259- }
260- }
254+ // TODO: do we really need this? need to find an exact usecase
255+ // if (!options.title && !options.message) {
256+ // if (alertController.view) {
257+ // (alertController.view as MDCAlertControllerView).contentInsets = UIEdgeInsetsZero;
258+ // } else {
259+ // alertController._disableContentInsets = true;
260+ // }
261+ // }
261262 view . viewController = alertController ; // needed to prevent a crash in layoutChild
262263 }
263264 const dialogPresentationControllerDelegate = MDCDialogPresentationControllerDelegateImpl . initWithCallback ( ( ) => {
You can’t perform that action at this time.
0 commit comments