karelia/iMedia — pull request #57 by danielpunkass (2012-04-20 01:02:52+00:00)
Title: Fix icon view resizing

Hi guys - I hate to be annoying with the github behavior - I just really don't think I know the right workflow. I tried branching to get "just this fix" but it seems because the branch has all my other unmerged changes in common, github insists on including all those commits in this request, too. The specific change for THIS pull request is:

https://github.com/danielpunkass/iMedia/commit/43dd0186049fccf66b9a0f64b9923c31c6af7b2b

I ran into an issue with a future update to Mac OS X where all iMedia based projects will have a defect in the icon view mode for nodes: when you resize the window, the content of the IMBImageBrowserView doesn't grow to match the scroll view's new size.

I traced this down to the fact that the ibIconView in IMBImageView.xib doesn't have any constraints set on it. If I set it to be "anchored" to top/bottom/right/left, like the other comparable image views in the other tabs, then the bug is addressed.

This seems like a safe fix given it just changes the IMBImageBrowserView to have the same autosizing flags as its peers in the other tabs of IMBImageView's UI.