Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ update_
Method
update_
ads/inabox/position-observer.js:72–74 ·
view source on GitHub ↗
* Updates viewport rect.
()
Source
from the content-addressed store, hash-verified
70
* Updates viewport rect.
71
*/
72
update_() {
73
this.viewportRect_ = this.getViewportRect();
74
}
75
76
/**
77
* @param {!Element} element
Callers
1
observe
Method · 0.95
Calls
1
getViewportRect
Method · 0.95
Tested by
no test coverage detected