-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fixed nativeroll's player collapse & resize bug #23656
Conversation
ads/nativeroll.js
Outdated
@@ -39,6 +39,9 @@ function initPlayer(data) { | |||
container: '#c', | |||
desiredOffset: 50, | |||
gid: data.gid, | |||
onError: () => { | |||
window.context.noContentAvailable(); |
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.
please pass down the window
from caller (global
)
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.
done
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.
Or i need something like "global.window.contex..."?
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.
function initPlayer(global, data) {
...
global.context.noContentAvailable();
}
@lannka Hi, can you check this again? thx |
@@ -39,6 +39,14 @@ function initPlayer(data) { | |||
container: '#c', | |||
desiredOffset: 50, | |||
gid: data.gid, | |||
onError: () => { | |||
global.context.noContentAvailable(); |
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.
you need pass global
object as function param
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.
ah, ok, did not immediately understand what you mean. Done this.
* fixed nativeroll's player collapse bug * window from global * use global & adding requestResize on content load * use global & adding requestResize on content load * /*ok*/ to the offsetHeight * pass global as param
@lannka
@zhouyx
Help with merge this plz.