浏览代码

Media collectionView NO bounces

marinofaggiana 3 年之前
父节点
当前提交
a2a430db84
共有 1 个文件被更改,包括 2 次插入1 次删除
  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.contentInset = UIEdgeInsets(top: 75, left: 0, bottom: 50, right: 0);
         collectionView.backgroundColor = NCBrandColor.shared.systemBackground
-        
+        collectionView.bounces = false
+                
         gridLayout = NCGridMediaLayout()
         gridLayout.itemForLine = CGFloat(min(CCUtility.getMediaWidthImage(), 5))
         gridLayout.sectionHeadersPinToVisibleBounds = true