File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -251,14 +251,13 @@ function createAlertController(options: DialogOptions & MDCAlertControlerOptions
251
251
alertController . accessoryView = createUIViewAutoSizeUIViewAutoSize ( view ) ;
252
252
253
253
// if no title or message disable contentInsets to be like android
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
- // }
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
+ }
262
261
view . viewController = alertController ; // needed to prevent a crash in layoutChild
263
262
}
264
263
const dialogPresentationControllerDelegate = MDCDialogPresentationControllerDelegateImpl . initWithCallback ( ( ) => {
You can’t perform that action at this time.
0 commit comments