瀏覽代碼

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

marinofaggiana 4 年之前
父節點
當前提交
496e5030b3
共有 1 個文件被更改,包括 6 次插入2 次删除
  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? {