mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 14:20:49 +00:00
Don't horizontally inset FIRST item column in collection view
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39630 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fab1e8f6f4
commit
5b5197d308
1 changed files with 2 additions and 2 deletions
|
@ -402,7 +402,7 @@ static NSString *placeholderItem = nil;
|
|||
NSRect itemFrame = NSMakeRect (0,0,0,0);
|
||||
NSInteger index;
|
||||
NSUInteger count = [_items count];
|
||||
CGFloat x = _horizontalMargin;
|
||||
CGFloat x = 0;
|
||||
CGFloat y = -_itemSize.height;
|
||||
|
||||
if (_maxNumberOfColumns > 0 && _maxNumberOfRows > 0)
|
||||
|
@ -414,7 +414,7 @@ static NSString *placeholderItem = nil;
|
|||
{
|
||||
if (index % _numberOfColumns == 0)
|
||||
{
|
||||
x = _horizontalMargin;
|
||||
x = 0;
|
||||
y += _verticalMargin + _itemSize.height;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue