Skip to content

Commit

Permalink
Fixes space between navigation bar and images
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLB committed Aug 6, 2019
1 parent 75423a4 commit e4cccfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions piwigo/Albums/Album Discover/DiscoverImagesViewController.m
Expand Up @@ -313,10 +313,10 @@ -(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSec
-(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
{
// Avoid unwanted spaces
if (section == 0) {
if (self.albumData.images.count == 0) {
return UIEdgeInsetsMake(0, kImageMarginsSpacing, 0, kImageMarginsSpacing);
} else {
return UIEdgeInsetsMake(10, kImageMarginsSpacing, 10, kImageMarginsSpacing);
return UIEdgeInsetsMake(4, kImageMarginsSpacing, 4, kImageMarginsSpacing);
}
}

Expand Down
4 changes: 2 additions & 2 deletions piwigo/Albums/Album Discover/SearchImagesViewController.m
Expand Up @@ -298,10 +298,10 @@ -(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSec
-(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
{
// Avoid unwanted spaces
if (section == 0) {
if (self.albumData.images.count == 0) {
return UIEdgeInsetsMake(0, kImageMarginsSpacing, 0, kImageMarginsSpacing);
} else {
return UIEdgeInsetsMake(10, kImageMarginsSpacing, 10, kImageMarginsSpacing);
return UIEdgeInsetsMake(4, kImageMarginsSpacing, 4, kImageMarginsSpacing);
}
}

Expand Down
4 changes: 2 additions & 2 deletions piwigo/Albums/Album Discover/TaggedImagesViewController.m
Expand Up @@ -316,10 +316,10 @@ -(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSec
-(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
{
// Avoid unwanted spaces
if (section == 0) {
if (self.albumData.images.count == 0) {
return UIEdgeInsetsMake(0, kImageMarginsSpacing, 0, kImageMarginsSpacing);
} else {
return UIEdgeInsetsMake(10, kImageMarginsSpacing, 10, kImageMarginsSpacing);
return UIEdgeInsetsMake(4, kImageMarginsSpacing, 4, kImageMarginsSpacing);
}
}

Expand Down

0 comments on commit e4cccfc

Please sign in to comment.