         } else {
             caclulatedHeight = 0
         }
-        data.cacheHeight = caclulatedHeight
+        if caclulatedHeight != UITableView.automaticDimension {
+            data.cacheHeight = caclulatedHeight
+        }
         return caclulatedHeight
     }
     

        } else {
            caclulatedHeight = 0
        }
        data.cacheHeight = caclulatedHeight
        return caclulatedHeight
    }


        forSection section: Int
    ) {
        guard let data = self.footer(index: section) else { return }
        if let decorView = view as? IQTableDecor {
            decorView.beginDisplay()
        }
        data.cacheHeight = view.frame.height
    }

    @objc
