marinofaggiana 5 жил өмнө
parent
commit
9be5bea5f7

+ 3 - 2
iOSClient/Activity/NCActivity.swift

@@ -86,9 +86,10 @@ class NCActivity: UIViewController, DZNEmptyDataSetSource, DZNEmptyDataSetDelega
     // MARK: DZNEmpty
     
     func verticalOffset(forEmptyDataSet scrollView: UIScrollView!) -> CGFloat {
-        return insets.top/2
+        let height = self.tabBarController?.tabBar.frame.size.height ?? 0
+        return -height
     }
-    
+
     func backgroundColor(forEmptyDataSet scrollView: UIScrollView) -> UIColor? {
         if filterFileId == nil {
             return NCBrandColor.sharedInstance.backgroundView

+ 6 - 0
iOSClient/Favorites/CCFavorites.m

@@ -127,6 +127,12 @@
 #pragma mark ==== DZNEmptyDataSetSource ====
 #pragma --------------------------------------------------------------------------------------------
 
+- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView
+{
+    //CGFloat height = self.tabBarController.tabBar.frame.size.height;
+    return 0;
+}
+
 - (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
 {
     return NCBrandColor.sharedInstance.backgroundView;

+ 6 - 0
iOSClient/Main/CCMain.m

@@ -527,6 +527,12 @@
         return YES;
 }
 
+- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView
+{
+    //CGFloat height = self.tabBarController.tabBar.frame.size.height;
+    return 0;
+}
+
 - (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
 {
     return NCBrandColor.sharedInstance.backgroundView;

+ 5 - 0
iOSClient/Notification/NCNotification.swift

@@ -68,6 +68,11 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, DZNEmpt
     
     // MARK: - DZNEmpty
     
+    func verticalOffset(forEmptyDataSet scrollView: UIScrollView!) -> CGFloat {
+        let height = self.tabBarController?.tabBar.frame.size.height ?? 0
+        return -height
+    }
+    
     func backgroundColor(forEmptyDataSet scrollView: UIScrollView) -> UIColor? {
         return NCBrandColor.sharedInstance.backgroundView
     }

+ 3 - 2
iOSClient/Transfers/CCTransfers.m

@@ -100,9 +100,10 @@
 #pragma mark ==== DZNEmptyDataSetSource ====
 #pragma --------------------------------------------------------------------------------------------
 
-- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView
+- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView
 {
-    return 0.0f;
+    CGFloat height = self.tabBarController.tabBar.frame.size.height;
+    return -height;
 }
 
 - (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView