From 119e0814a0d13c659b609fb3bef3a23aa697d7cb Mon Sep 17 00:00:00 2001 From: "Dr. Michael Lauer" Date: Mon, 24 Sep 2018 09:14:24 +0200 Subject: [PATCH] fix size in sheet mode. Patch courtesy @DemonToby, see https://github.com/Friend-LGA/LGAlertView/pull/51 --- LGAlertView/LGAlertView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/LGAlertView/LGAlertView.m b/LGAlertView/LGAlertView.m index 5020301..0d78d95 100644 --- a/LGAlertView/LGAlertView.m +++ b/LGAlertView/LGAlertView.m @@ -2701,6 +2701,7 @@ - (void)subviewsValidateWithSize:(CGSize)size { self.tableView.delegate = self; self.tableView.scrollEnabled = NO; [self.tableView registerClass:[LGAlertViewCell class] forCellReuseIdentifier:@"cell"]; + self.tableView.estimatedRowHeight = _buttonsHeight; self.tableView.frame = CGRectMake(0.0, 0.0, width, CGFLOAT_MAX); [self.tableView reloadData];