marinofaggiana %!s(int64=4) %!d(string=hai) anos
pai
achega
405e433810
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      iOSClient/Media/NCMedia.swift

+ 1 - 0
iOSClient/Media/NCMedia.swift

@@ -1025,6 +1025,7 @@ class NCGridMediaLayout: UICollectionViewFlowLayout {
                 }
                 
                 frameWidth = collectionView.frame.width
+                if itemForLine <= 0 { itemForLine = 1 }
                 itemWidth = (frameWidth - marginLeftRight * 2 - marginLeftRight * (itemForLine - 1)) / itemForLine
                 
                 return CGSize(width: itemWidth, height: itemWidth)