mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 09:33:28 +00:00
Fix NSTableView rendering zero-sized rows
There's no reason to reallocate the row heights cache here.
This commit is contained in:
parent
a924c352f5
commit
26a2c08c8b
@ -386,9 +386,6 @@ static CGFloat rowHeightAtIndex(NSTableView *self, NSInteger index){
|
||||
NSInteger i;
|
||||
CGFloat height = 0.;
|
||||
|
||||
_rowHeightsCount=numberOfRows;
|
||||
_rowHeights=realloc(_rowHeights,sizeof(CGFloat)*_rowHeightsCount);
|
||||
|
||||
for (i = 0; i < numberOfRows; i++) {
|
||||
if (height + rowHeightAtIndex(self,i) + _intercellSpacing.height > rect.origin.y)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user