mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Disable floating group rows in file browser + search results (macOS 11)
There appears to be a problem with floating views (in tables) on Big Sur, so this is an attempt of a temporary workaround. The visual look of group rows is currently not very good (on macOS 11).
This commit is contained in:
@@ -27,7 +27,10 @@
|
||||
_outlineView.headerView = nil;
|
||||
|
||||
if(@available(macos 11.0, *))
|
||||
{
|
||||
_outlineView.style = NSTableViewStylePlain;
|
||||
_outlineView.floatsGroupRows = NO;
|
||||
}
|
||||
|
||||
[_outlineView setDraggingSourceOperationMask:NSDragOperationLink|NSDragOperationMove|NSDragOperationCopy forLocal:YES];
|
||||
[_outlineView setDraggingSourceOperationMask:NSDragOperationEvery forLocal:NO];
|
||||
|
||||
@@ -318,7 +318,10 @@ static FFResultNode* PreviousNode (FFResultNode* node)
|
||||
_outlineView.columnAutoresizingStyle = NSTableViewNoColumnAutoresizing;
|
||||
|
||||
if(@available(macos 11.0, *))
|
||||
{
|
||||
_outlineView.style = NSTableViewStylePlain;
|
||||
_outlineView.floatsGroupRows = NO;
|
||||
}
|
||||
|
||||
NSTableColumn* tableColumn = [[NSTableColumn alloc] initWithIdentifier:@"checkbox"];
|
||||
tableColumn.width = 50;
|
||||
|
||||
Reference in New Issue
Block a user