Browse Source

Merge remote-tracking branch 'refs/remotes/origin/Coherence'

marinofaggiana 4 năm trước cách đây
mục cha
commit
496e5030b3
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      iOSClient/Activity/NCActivity.swift

+ 6 - 2
iOSClient/Activity/NCActivity.swift

@@ -86,8 +86,12 @@ class NCActivity: UIViewController, DZNEmptyDataSetSource, DZNEmptyDataSetDelega
     // MARK: DZNEmpty
     
     func verticalOffset(forEmptyDataSet scrollView: UIScrollView!) -> CGFloat {
-        let height = self.tabBarController?.tabBar.frame.size.height ?? 0
-        return -height
+        if insets.top != 0 {
+            return insets.top - 150
+        } else {
+            let height = self.tabBarController?.tabBar.frame.size.height ?? 0
+            return -height
+        }
     }
 
     func backgroundColor(forEmptyDataSet scrollView: UIScrollView) -> UIColor? {