Skip to content

Commit

Permalink
Added verticalMargin accessor to CPCollectionView.
Browse files Browse the repository at this point in the history
  • Loading branch information
nciagra authored and Ross Boucher committed Jan 30, 2009
1 parent 9295e24 commit 66bbfbb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions AppKit/CPCollectionView.j
Expand Up @@ -559,6 +559,11 @@

// Cappuccino Additions

/*!
Sets the collection view's vertical spacing between elements.
@param aVerticalMargin the number of pixels to place between elements
*/

- (void)setVerticalMargin:(float)aVerticalMargin
{
if (_verticalMargin == aVerticalMargin)
Expand All @@ -569,6 +574,15 @@
[self tile];
}

/*!
Gets the collection view's current vertical spacing between elements.
*/

- (float)verticalMargin
{
return _verticalMargin;
}

/*!
Sets the collection view's delegate
@param aDelegate the new delegate
Expand Down

0 comments on commit 66bbfbb

Please sign in to comment.