-
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
Implement iframe resizing for amp-ad #1512
Conversation
cc @dvoytenko |
this.element.setAttribute('height', newHeight); | ||
this.updateHeight_(newHeight); | ||
} | ||
}, /* opt_is3P */true); |
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.
nit: space between comment and true
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
6d65bf9
to
58960f8
Compare
PTAL (changes to .md file) |
An `amp-ad` must have static layout defined as is the case with any other AMP element. However, | ||
it's possible to resize an `amp-ad` in runtime. To do so: | ||
|
||
1. The `amp-ad` must be defined with `resizable` attribute; |
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.
Where do we enforce this? I think we should not use the attribute here.
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.
Iframes do need this as of today (so does my ads implementation),
search for isResizable_
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.
Probably a good idea actually. Make sure to also have the validator changes 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.
Okay - will start on the validator right after we get this in.
263e627
to
c853cf6
Compare
PTAL |
LGTM |
Implement iframe resizing for amp-ad
Thinking about this some more: How about we do a quick follow up, where we
That way the ad can handle the expand button itself. |
@cramforce discussion has been started here: #1533. |
#814