alexrozanski / PXSourceList

Source List control for the Mac
Other
639 stars 77 forks source link

Icons moving around when scrollbar is shown/hidden #28

Closed Kapeli closed 10 years ago

Kapeli commented 10 years ago

While using legacy scroll bars (System Preferences > General > Show scroll bars > Always), the icons of the source list move around while the scroller is shown/hidden.

Steps to reproduce:

  1. Set "Show scroll bars" to "Always" in System Preferences
  2. Resize the window of the PXSourceList sample app to be just high enough for the source list to not have a scrollbar
  3. Expand a source list item and notice that the icons move around when the scrollbar is shown

I have tried to fix this with no luck. As far as I can tell, the issue is caused by the animation that the NSOutlineView performs...

expand issue

alexrozanski commented 10 years ago

I spent a bit of time looking into this and it seems like it's because the cells are being resized in slightly strange ways when the scroll bars are shown/hidden (and the drawing of the icons is based on the positioning of each cell). If there isn't a workaround for it, I'll be sure to file a bug with Apple.

Kapeli commented 10 years ago

This is fixed for the view-based PXSourceList (still happens for cell-based though). Feel free to close this issue if you plan on dropping support for cell-based.

alexrozanski commented 10 years ago

Nice, thanks for the update.

Yes, since this is an obscure bug and cell-based table views are being deprecated, I won't try and fix this.