From 66bbfbbb3ca17e96bb7743ece664b8f071379644 Mon Sep 17 00:00:00 2001 From: nciagra Date: Thu, 29 Jan 2009 23:22:43 -0500 Subject: [PATCH] Added verticalMargin accessor to CPCollectionView. --- AppKit/CPCollectionView.j | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/AppKit/CPCollectionView.j b/AppKit/CPCollectionView.j index 5ed2673df..0768d9b69 100644 --- a/AppKit/CPCollectionView.j +++ b/AppKit/CPCollectionView.j @@ -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) @@ -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