Skip to content

Commit

Permalink
Merge pull request #405 from TwoScoopGames/fix-landscape-banners
Browse files Browse the repository at this point in the history
Make landscape banners full-width
  • Loading branch information
phoboslab committed Jul 9, 2014
2 parents 5bb4740 + 28c37ed commit 66b9fcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Ejecta/EJUtils/EJBindingAdBanner.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ - (void)createWithJSObject:(JSObjectRef)obj scriptView:(EJJavaScriptView *)view
? ADBannerContentSizeIdentifierLandscape
: ADBannerContentSizeIdentifierPortrait),
nil];
if( landscape ) {
banner.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
}

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

0 comments on commit 66b9fcc

Please sign in to comment.