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

Show the story bookend in vertical rendering. #22976

Merged
merged 1 commit into from Jun 24, 2019

Conversation

gmajoulet
Copy link
Contributor

Show the story bookend in vertical rendering.

@Enriqe
Copy link
Contributor

Enriqe commented Jun 24, 2019

Do we want to render the bookend before the page attachments? I thought we wanted it at the end?

Also somewhat related: the page attachment in the bot view is showing multiple "x" buttons, we might want to fix that.

image

@@ -1820,6 +1820,8 @@ export class AmpStory extends AMP.BaseElement {
'amp-story-page amp-story-page-attachment'
);

this.initializeBookend_().then(() => this.showBookend_());
Copy link
Contributor

Choose a reason for hiding this comment

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

Could having this outside of the this.vsync_.mutate below cause race conditions that would result in rendering the bookend sometimes before the page attachments, and sometimes after?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The initializeBookend_ method creates the bookend synchronously, if it didn't exist yet. It'll always be before the page attachments

@gmajoulet
Copy link
Contributor Author

Product decision was to render the page attachments last. I filed #22982 for the close buttons issue, that's specific to the visual diff tests

@gmajoulet gmajoulet merged commit f04ec7e into ampproject:master Jun 24, 2019
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
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

4 participants