Browse Source

Media collectionView NO bounces

marinofaggiana 3 years ago
parent
commit
a2a430db84
1 changed files with 2 additions and 1 deletions
  1. 2 1
      iOSClient/Media/NCMedia.swift

+ 2 - 1
iOSClient/Media/NCMedia.swift

@@ -78,7 +78,8 @@ class NCMedia: UIViewController, NCEmptyDataSetDelegate, NCSelectDelegate {
         collectionView.alwaysBounceVertical = true
         collectionView.alwaysBounceVertical = true
         collectionView.contentInset = UIEdgeInsets(top: 75, left: 0, bottom: 50, right: 0);
         collectionView.contentInset = UIEdgeInsets(top: 75, left: 0, bottom: 50, right: 0);
         collectionView.backgroundColor = NCBrandColor.shared.systemBackground
         collectionView.backgroundColor = NCBrandColor.shared.systemBackground
-        
+        collectionView.bounces = false
+                
         gridLayout = NCGridMediaLayout()
         gridLayout = NCGridMediaLayout()
         gridLayout.itemForLine = CGFloat(min(CCUtility.getMediaWidthImage(), 5))
         gridLayout.itemForLine = CGFloat(min(CCUtility.getMediaWidthImage(), 5))
         gridLayout.sectionHeadersPinToVisibleBounds = true
         gridLayout.sectionHeadersPinToVisibleBounds = true