Skip to content

Commit c08f387

Browse files
committed
chore: missing from last release
1 parent f8cb0d5 commit c08f387

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/dialogs/dialogs.ios.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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(() => {

0 commit comments

Comments
 (0)