Skip to content

Commit

Permalink
Merge pull request #2474 from cwensley/curtis/mac-center-treegridview…
Browse files Browse the repository at this point in the history
…-expander-icon

Mac: Ensure expander is centered in cell
  • Loading branch information
cwensley authored May 16, 2023
2 parents ea1d236 + 29ba31f commit 990442a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Eto.Mac/Forms/Controls/TreeGridViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,12 @@ public EtoOutlineView(IntPtr handle) : base(handle)
{
}

public override CGRect FrameOfOutlineCellAtRow(nint row)
{
// this does "nothing" but it does make the outline cell center the disclosure triangle.
return base.FrameOfOutlineCellAtRow(row);
}

#if MACOS_NET
public override NSImage DragImageForRows(NSIndexSet dragRows, NSTableColumn[] tableColumns, NSEvent dragEvent, ref CGPoint dragImageOffset)
{
Expand Down

0 comments on commit 990442a

Please sign in to comment.