OS X 10.11 (15A204h) - NSSplitView visual glitch when collapsing a subview

Originator:kastansn
Number:rdar://21562124 Date Originated:2015/06/26
Status:Closed Resolved:
Product:OS X SDK Product Version:OS X 10.11
Classification:Usability / UI Reproducible:Always
 
When a subview of a NSSplitView configured with auto layout is collapsed, this wrongfully also affects other subviews of the split view.
Instead of expanding their sizes accordingly to the space that was set free by the collapsed view they slightly change position and reveal their underlying view. This causes an ugly visual glitch demonstrated by the attached demo project and screen shots at http://imgur.com/jHLADIh

This is a regression and doesn't occur in OS X 10.9 or 10.10 as can be verified by running the demo on those versions.

Steps to Reproduce:
1. Build and run the attached demo project
2. Collapse the blue subview by dragging its divider to the left

Expected Results:
The blue subview should be collapsed while not affecting the other subviews or dividers.
It should look like shown in success.png (OS X 10.9, 10.10)

Actual Results:
The blue subview is collapsed but also caused a change to the second divider and thus to the size of the purple view. The underlying view (colored yellow) leaks.
It looks like shown in failure.png (OS X 10.11)

Version:
Xcode 7.0 beta (7A121l)
OS X 10.11 (15A204h)

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!