-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize handler now resizes #555
Conversation
src/ad-ui.js
Outdated
this.adsManagerDimensions.height = height; | ||
if (this.controller.sdkImpl.adsManager) { | ||
this.controller.sdkImpl.adsManagerDimensions.width = width; | ||
this.controller.sdkImpl.adsManagerDimensions.height = height; | ||
/* global google */ | ||
/* eslint no-undef: 'error' */ | ||
this.adsManager.resize(width, height, google.ima.ViewMode.NORMAL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call will still fail since AdUi doesn't own adsManager, sdkImpl does. I think to fix this we actually want to move this whole method to SdkImpl, and in controller.js instead of calling adUi.onPlayerResize() we want to call sdkImpl.onPlayerResize().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that's a blatant oversight on line 446 that should read:
this.controller.sdkImpl.adsManager.resize(width, height, google.ima.ViewMode.NORMAL);
However, point taken. Will refactor into sdkImpl.onPlayerResize()
Fixes: ``` 1) Basic Tests chrome-local Displays skip ad button chrome-local: WebDriverError: unknown error: call function result missing 'value' 2) Basic Tests chrome-local Nonlinear chrome-local: WebDriverError: unknown error: call function result missing 'value' ```
@shawnbuso is this what you had in mind? |
Yea that's perfect, thanks! |
Nice - my first foray into this project post the |
Glad to hear! I also like the workflow a lot more post-v1 :) |
* Resize handler now resizes - fix for googleads#554 * Fix failing tests due to outdated chromedriver. Fixes: ``` 1) Basic Tests chrome-local Displays skip ad button chrome-local: WebDriverError: unknown error: call function result missing 'value' 2) Basic Tests chrome-local Nonlinear chrome-local: WebDriverError: unknown error: call function result missing 'value' ```
Fix for #554