Horizontal and vertical item spacing#52
Horizontal and vertical item spacing#52brotherbard wants to merge 1 commit intogmoledina:developfrom
Conversation
|
I created separate properties because I don't think of the spacing as a size and didn't want to overload CGSize to mean something else. But if people prefer it as CGSize I'll change it. Also, as I've been playing with the spacing I think I want to change it based on portrait or landscape. The margins as well. I'm currently abusing GMGridView:sizeForItemsInInterfaceOrientation: to change these settings but maybe there should be a separate delegate call for that. And I'm not sure if it should be the data source delegate so a new layout delegate? Any preferences? Or is that the correct place to change things. |
|
I really don't think we should handle this level of detail for the spacing as it will get hard to manage. Later we might even need different spacing per orientation too, and it just gets too much. I suggest the grid only handles the minimum and the when creating the cell, you can play with your own subviews and layers and add more spacing if required. |
|
Thanks. It works charm. |
|
Thanks alOOOt |
I separated the item spacing into horizontal and vertical to allow for better layout customization.