File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,10 @@ - (CGFloat)fd_heightForCellWithIdentifier:(NSString *)identifier configuration:(
105
105
}
106
106
}
107
107
108
- // Add separator's height, using a private property in UITableViewCell.
109
- CGFloat separatorHeight = [[templateLayoutCell valueForKey: @" _separatorHeight" ] doubleValue ];
110
- fittingSize.height += separatorHeight;
108
+ // Add 1px extra space for separator line if needed, simulating default UITableViewCell.
109
+ if (self.separatorStyle != UITableViewCellSeparatorStyleNone) {
110
+ fittingSize.height += 1.0 / [UIScreen mainScreen ].scale ;
111
+ }
111
112
112
113
if (templateLayoutCell.fd_enforceFrameLayout ) {
113
114
[self fd_debugLog: [NSString stringWithFormat: @" calculate using frame layout - %@ " , @(fittingSize.height)]];
You can’t perform that action at this time.
0 commit comments