fixed: animation header glitch

This commit is contained in:
daboe01 committed 2026-02-08 20:46:07 +01:00
1 parent 0b4fe62f89
commit 9656985dbd
2 files changed
+11 -8

No files matched your search

+5 -2
View File
@@ -1545,7 +1545,7 @@ NOT YET IMPLEMENTED
*/
- (void)selectRowIndexes:(CPIndexSet)rows byExtendingSelection:(BOOL)shouldExtendSelection
{
if ([rows isEqualToIndexSet:_selectedRowIndexes] ||
if (([rows isEqualToIndexSet:_selectedRowIndexes] && [_selectedColumnIndexes count] === 0) ||
(([rows firstIndex] != CPNotFound && [rows firstIndex] < 0) || [rows lastIndex] >= [self numberOfRows]) ||
[self numberOfColumns] <= 0)
return;
@@ -1555,6 +1555,9 @@ NOT YET IMPLEMENTED
{
[self _updateHighlightWithOldColumns:_selectedColumnIndexes newColumns:[CPIndexSet indexSet]];
_selectedColumnIndexes = [CPIndexSet indexSet];
[self _updateSelectedColumnBackgrounds];
if (_headerView)
[_headerView setNeedsDisplay:YES];
}
@@ -4951,7 +4954,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
else
newSelection = [CPIndexSet indexSet];
if ([newSelection isEqualToIndexSet:_selectedRowIndexes])
if ([newSelection isEqualToIndexSet:_selectedRowIndexes] && [_selectedColumnIndexes count] === 0)
return;
if (![self _sendDelegateSelectionShouldChangeInTableView])
+6 -6
View File
@@ -7025,8 +7025,9 @@ var themedButtonValues = nil,
// Standard Background
background = [CPColor colorWithCSSDictionary:@{
@"background-color": A3ColorBackgroundWhite,
@"border-bottom": @"1px solid " + A3ColorTableDivider
}
@"border-bottom": @"1px solid " + A3ColorTableDivider,
@"box-sizing": @"border-box"
}
beforeDictionary:nil
afterDictionary:@{
@"background-color": A3ColorTableHeaderSeparator,
@@ -7063,8 +7064,9 @@ var themedButtonValues = nil,
// --- HUD Background ---
hudBackground = [CPColor colorWithCSSDictionary:@{
@"background-color": @"rgba(0, 0, 0, 0.25)",
@"border-bottom": @"1px solid rgba(255, 255, 255, 0.2)"
}
@"border-bottom": @"1px solid rgba(255, 255, 255, 0.2)",
@"box-sizing": @"border-box"
}
beforeDictionary:nil
afterDictionary:@{
@"background-color": @"rgba(255, 255, 255, 0.2)",
@@ -7189,8 +7191,6 @@ var themedButtonValues = nil,
[theTableView _loadDataViewsInRows:rowsIndexes columns:columnsIndexes];
[theTableView _updateDataViewsFocusState];
[theTableView _layoutViewsForRowIndexes:rowsIndexes columnIndexes:columnsIndexes];
[theTableView._tableDrawView displayRect:columnVisRect];
}];
[[animatedView animator] setFrameOrigin:CGPointMake(destinationX, animatedOrigin.y)];