Skip to content
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

Merged
merged 7 commits into from
Aug 8, 2019

Conversation

n-randin
Copy link
Contributor

@n-randin n-randin commented Aug 2, 2019

@lannka
@zhouyx
Help with merge this plz.

@@ -39,6 +39,9 @@ function initPlayer(data) {
container: '#c',
desiredOffset: 50,
gid: data.gid,
onError: () => {
window.context.noContentAvailable();
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor Author

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..."?

Copy link
Contributor

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();
}

@n-randin n-randin changed the title fixed nativeroll's player collapse bug fixed nativeroll's player collapse & resize bug Aug 6, 2019
@n-randin
Copy link
Contributor Author

n-randin commented Aug 6, 2019

@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();
Copy link
Contributor

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

Copy link
Contributor Author

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.

@lannka lannka merged commit ddd07fd into ampproject:master Aug 8, 2019
@n-randin n-randin deleted the nativeroll branch August 8, 2019 10:06
@n-randin n-randin restored the nativeroll branch August 8, 2019 10:07
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants