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 {
114
114
teadsAdView? . bind ( ad)
115
115
ad. delegate = self
116
116
self . adRatio = adRatio
117
+ adHeight = adRatio. calculateHeight ( for: tableView. bounds. width)
117
118
resizeTeadsAd ( adRatio: adRatio)
118
119
}
119
120
@@ -122,8 +123,9 @@ extension InReadDirectTableViewController: TeadsInReadAdPlacementDelegate {
122
123
}
123
124
124
125
func didUpdateRatio( ad: TeadsInReadAd , adRatio: TeadsAdRatio ) {
125
- updateAdCellHeight ( )
126
126
self . adRatio = adRatio
127
+ adHeight = adRatio. calculateHeight ( for: tableView. bounds. width)
128
+ updateAdCellHeight ( )
127
129
}
128
130
129
131
func adOpportunityTrackerView( trackerView: TeadsAdOpportunityTrackerView ) {
You can’t perform that action at this time.
0 commit comments