Skip to content

Fix hasTextContent for meta blocks#3539

Merged
miina merged 2 commits intodevelopfrom
fix/3447-fix-has-content
Oct 16, 2019
Merged

Fix hasTextContent for meta blocks#3539
miina merged 2 commits intodevelopfrom
fix/3447-fix-has-content

Conversation

@barklund
Copy link
Copy Markdown
Contributor

Summary

This addresses a regression, that was assumed to come from #3447, but actually arose from #3433.

hasTextContent must be set to true by default for all meta text blocks.

Suggestions for a better/cleaner isMetaTextBlock are very welcome as are references to a similar "calculation" elsewhere.

Fixes #3447

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@googlebot googlebot added the cla: yes Signed the Google CLA label Oct 15, 2019
@barklund barklund self-assigned this Oct 15, 2019
@barklund barklund requested a review from miina October 15, 2019 21:05
@miina
Copy link
Copy Markdown
Contributor

miina commented Oct 16, 2019

Hmm, there are still some oddities happening but it looks like something that was happening pre-3447 and pre-3433 --- at least looks like that when checking out a commit before those.

oddities

Perhaps related to maybeUpdateBlockDimensions not agreeing with what the resizing logic thinks.

@barklund barklund requested a review from miina October 16, 2019 13:56
@miina miina merged commit 5799032 into develop Oct 16, 2019
@miina miina deleted the fix/3447-fix-has-content branch October 16, 2019 15:56
@westonruter westonruter added this to the v1.4 milestone Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text block with amp-fit-text "sliding" incorrectly when close to minimum limit

5 participants