NSStackView's dropped views never reattach as a NSTableView cell view

Originator:sebastienboisvert
Number:rdar://20621810 Date Originated:20 april 2015
Status:Duplicate of 18433268 Resolved:NO
Product:Mac OS X Product Version:10.10
Classification:bug Reproducible:Always
 
Summary:
When a NSStackView is configured to be used as a cell view in a NSTableView, and this stack view has views configured to be dropped as needed, the dropped views will never get reattached when there's enough space for them when expanding the tableview width.

Steps to Reproduce:
1. Xcode 6.3
2. Load attached sample program. It contains a window that has NSStackView's as rows. The stack view is configured to drop the button views in the centre gravity if the tableview width is shrunk.
3. Shrink and expand the window width to compress/expand the tableview width.

Expected Results:
When the window width is shrunk, the buttons are detached from the stack view (rightmost first, etc.). When the window width is expanded, the buttons that were detached are reattached in reverse order.

Actual Results:
The buttons do detach, but they never reattach.

I've tried to alter the configuration of the stack view itself, and other views in the stack view (altering hugging/compression priorities, etc.) when all detachable views are detached, in an attempt to get the detached views to be reattached afterwards, but no changes I've tried corrected the problem (I would not expect to have to do this

Sample program at https://github.com/sebastienboisvert/stackViewTableViewTest

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!