Hi,
I spent some time playing with CPCollectionView, and I guess it
doesn't resize/reposition its subviews (items) the way it should.
I know that there are some differences between the Cappuccino and the
Cocoa implementation of CollectionView, so I'd like to share my
thoughts here before I possibly try to propose a patch.
Here is an example (a modified version of this example is linked below) :
http://j.mp/5Oq9Di
See how the 4 collection views are created here :
http://gist.github.com/244514
My remarks about the example :
- 1st collection view : it has a MaxNumberOfColumns set to 1. I guess
that the 3 views should be aligned to the left instead of remaining
centered
- 2nd collection view : it has no MaxNumberOfColumns set, the Min and
Max item size have been set. If you resize your browser to make it
wider, you can see that the views are growing until the remaining
space is wide enough to contain another view, then they are resized to
their minimum size. I guess that the views should grow to their
maximum size then stop being resized.
- 3d collection view : same as previous, but no Max Item size set.
Here, if you make your browser window wider, I guess the view should
fill the whole width of the CollectionView
- 4th collection view : here, the collection view has a Min Item size,
but no Max Item size, and the MaxNumberOfColumns set to 1. I guess
that the views should fill the whole width of the collection view
And here is a modified example, that behaves the way I think it should :
http://j.mp/8JEfnB
Please share your thoughts.
Thanks!
Thomas.