mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 08:06:16 +00:00
Fix for variable row heights with no rows on startup
This commit is contained in:
1 parent
a292936d55
commit
af4e69afc9
1 file changed
+5
-1
@@ -2059,8 +2059,12 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
if ([self numberOfRows] !== _cachedRowHeights.length)
|
||||
[self noteHeightOfRowsWithIndexesChanged:[CPIndexSet indexSetWithIndexesInRange:CPMakeRange(0, [self numberOfRows])]];
|
||||
|
||||
var heightObject = _cachedRowHeights[_cachedRowHeights.length - 1],
|
||||
var heightObject = _cachedRowHeights[_cachedRowHeights.length - 1];
|
||||
|
||||
if (heightObject)
|
||||
height = heightObject.heightAboveRow + heightObject.height + _intercellSpacing.height;
|
||||
else
|
||||
height = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user