NSTableHeaderView draws incorrectly when taller than standard

Originator:mayoff
Number:rdar://42623717 Date Originated:26-Jul-2018 09:45 AM
Status:Open Resolved:
Product:macOS + SDK Product Version:macOS 10.14 Beta (18A336e)
Classification:UI/Usability Reproducible:Always
 
Summary:
Dear AppKitterinos,

I want to make my table view’s header taller so I can use two lines of text in some of my column labels.

I can increase the height of my table view’s header like this:

    CGRect frame = self.tableView.headerView.frame;
    frame.size.height += 14;
    self.tableView.headerView.frame = frame;
    [self.tableView.enclosingScrollView tile];

But when I do so, the header is drawn incorrectly. I have attached screen shots of the incorrect appearance:

- 10.14b4-light.png is the appearance on macOS 10.14 beta 4 in light aqua appearance.
- 10.14b4-dark.png is the appearance on macOS 10.14 beta 4 in dark aqua appearance.
- 10.13.6-sometimes.png is the appearance on macOS 10.13.6. Sometimes the test app looks like this at launch. Other times, it looks like 10.13.6-after-resize.png.
- 10.13.6-after-resize.png is the appearance on macOS 10.13.6 after resizing the window. Sometimes the test app just looks like this at launch, without needing to be resized first.

I have also attached my test project.

Please make NSTableHeaderView draw itself correctly even when I make it taller than normal.

Thanks,
Rob


Steps to Reproduce:
 

Expected Results:
 

Actual Results:
 

Version:
macOS 10.14 Beta (18A336e)

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!