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

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


        } else {
            caclulatedHeight = 0
        }
        if caclulatedHeight != UITableView.automaticDimension {
            row.cacheHeight = caclulatedHeight
        }
        return caclulatedHeight
    }

