Skip to content

Position n+1 story desktop page before positioning attributes are set.#26488

Merged
gmajoulet merged 1 commit intoampproject:masterfrom
gmajoulet:desktop_panels_load_positioning
Jan 27, 2020
Merged

Position n+1 story desktop page before positioning attributes are set.#26488
gmajoulet merged 1 commit intoampproject:masterfrom
gmajoulet:desktop_panels_load_positioning

Conversation

@gmajoulet
Copy link
Copy Markdown
Contributor

When loading a desktop panels story, the n+1 page isn't positioned until pretty late in the code execution, when we set positioning attributes. That n+1 page flies in the viewport once the position is set.

This PR positions the n+1 page until the final position attributes are set.

Repro the animation issue

@gmajoulet gmajoulet merged commit 244d647 into ampproject:master Jan 27, 2020
@gmajoulet gmajoulet deleted the desktop_panels_load_positioning branch January 27, 2020 19:09
westonruter added a commit to westonruter/amphtml that referenced this pull request Jan 28, 2020
…frame-pymjs-support

* 'master' of github.com:ampproject/amphtml: (436 commits)
  🐛Add computed styles to fake win (ampproject#26514)
  📦 Update dependency eslint-config-prettier to v6.10.0 (ampproject#26518)
  🐛 Rewrite relative urls in the bookend (ampproject#26490)
  ✨ [amp-list] Introduce "amp-state:" as a usable protocol for the src attribute. (ampproject#26284)
  Add terminal newline to files.txt (ampproject#26513)
  📦 Update dependency chromedriver to v79.0.2 (ampproject#26515)
  ♻️ Change the opt-in cookie values to reflect upcoming CDN changes (ampproject#26489)
  ♻️<amp-next-page> v2 minor renaming and fixes (ampproject#26468)
  fix link (ampproject#26508)
  amp-list: fix broken test re. missing layout (ampproject#26509)
  performance: emit timeOrigin w/ polyfill (ampproject#26485)
  Position n+1 story desktop page before positioning attributes are set. (ampproject#26488)
  ✨amp-nested-menu: allow svg into (ampproject#26502)
  Log user warning when missing URL arg for shadow doc (ampproject#26290)
  📦 Update dependency puppeteer to v2.1.0 (ampproject#26501)
  Ensure that fluid slots hidden by media queries do not issue ad requests. (ampproject#26352)
  📦 Update dependency mocha to v7.0.1 (ampproject#26495)
  📦 Update dependency fetch-mock to v8.3.2 (ampproject#26491)
  Revert 'Move mutator implementations out to a standalone service' (ampproject#26479)
  Fix syntax error (ampproject#26481)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants