Skip to content

Commit 66b9fcc

Browse files
committed
Merge pull request #405 from TwoScoopGames/fix-landscape-banners
Make landscape banners full-width
2 parents 5bb4740 + 28c37ed commit 66b9fcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/Ejecta/EJUtils/EJBindingAdBanner.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ - (void)createWithJSObject:(JSObjectRef)obj scriptView:(EJJavaScriptView *)view
2222
? ADBannerContentSizeIdentifierLandscape
2323
: ADBannerContentSizeIdentifierPortrait),
2424
nil];
25+
if( landscape ) {
26+
banner.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
27+
}
2528

2629
[scriptView addSubview:banner];
2730
NSLog(@"AdBanner: init at y %f", banner.frame.origin.y);

0 commit comments

Comments
 (0)