File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
TeadsSampleApp/Controllers/InRead/Direct/TableView Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ extension InReadDirectTableViewController: TeadsInReadAdPlacementDelegate {
114114 teadsAdView? . bind ( ad)
115115 ad. delegate = self
116116 self . adRatio = adRatio
117+ adHeight = adRatio. calculateHeight ( for: tableView. bounds. width)
117118 resizeTeadsAd ( adRatio: adRatio)
118119 }
119120
@@ -122,8 +123,9 @@ extension InReadDirectTableViewController: TeadsInReadAdPlacementDelegate {
122123 }
123124
124125 func didUpdateRatio( ad: TeadsInReadAd , adRatio: TeadsAdRatio ) {
125- updateAdCellHeight ( )
126126 self . adRatio = adRatio
127+ adHeight = adRatio. calculateHeight ( for: tableView. bounds. width)
128+ updateAdCellHeight ( )
127129 }
128130
129131 func adOpportunityTrackerView( trackerView: TeadsAdOpportunityTrackerView ) {
You can’t perform that action at this time.
0 commit comments