MCPcopy
hub / github.com/ampproject/amphtml / shouldPositionCenter_

Method shouldPositionCenter_

third_party/subscriptions-project/swg.js:11319–11321  ·  view source on GitHub ↗

* Returns whether or not the dialog should have position 'CENTER'. * @return {boolean} * @private

()

Source from the content-addressed store, hash-verified

11317 * @private
11318 */
11319 shouldPositionCenter_() {
11320 return this.positionCenterOnDesktop_ && this.desktopMediaQuery_.matches;
11321 }
11322
11323 /**
11324 * Returns the styles required to postion the dialog.

Callers 5

closeMethod · 0.95
resizeViewMethod · 0.95
updatePaddingToHtml_Method · 0.95
getPositionStyle_Method · 0.95
getDefaultTranslateY_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected