width update for calculate correct height

This commit is contained in:
Murugan, Vimal 2019-09-05 14:53:42 +05:30
parent 0faabb8f17
commit e5a66dc1a3

View File

@ -289,8 +289,7 @@
UIView *headerView = self.headerView;
UIView *tableHeader = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 0)];
[MVMCoreUIUtility sizeViewToFit:headerView];
[MVMCoreUIUtility sizeViewToFit:headerView forWidth:[NSNumber numberWithFloat:[MVMCoreUISplitViewController getDetailViewWidth]]];
CGRect frame = tableHeader.frame;
frame.size.height = CGRectGetHeight(headerView.frame);
tableHeader.frame = frame;