Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@LongCatIsLooong
Copy link
Contributor

@LongCatIsLooong LongCatIsLooong commented Aug 10, 2020

Description

Inline placeholders need to report their real widths instead of the width of objReplacementChar during the longest_line_ calculation.

Related Issues

Fixes flutter/flutter#62551

Tests

I added the following tests:

  • InlinePlaceholderLongestLine

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

  • No, no existing tests failed, so this is not a breaking change.

@auto-assign auto-assign bot requested a review from flar August 10, 2020 09:38
@LongCatIsLooong LongCatIsLooong removed the request for review from flar August 10, 2020 09:40
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@LongCatIsLooong LongCatIsLooong merged commit 9893a29 into flutter:master Aug 11, 2020
@LongCatIsLooong LongCatIsLooong deleted the longest-line-inline-placeholders branch August 11, 2020 23:23
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 12, 2020
zanderso added a commit that referenced this pull request Aug 20, 2020
zanderso added a commit that referenced this pull request Aug 20, 2020
LongCatIsLooong added a commit that referenced this pull request Aug 20, 2020
LongCatIsLooong added a commit to LongCatIsLooong/engine that referenced this pull request Aug 20, 2020
LongCatIsLooong added a commit to LongCatIsLooong/engine that referenced this pull request Aug 21, 2020
LongCatIsLooong added a commit to LongCatIsLooong/engine that referenced this pull request Aug 21, 2020
LongCatIsLooong added a commit to LongCatIsLooong/engine that referenced this pull request Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When adding in-line WidgetSpans, Richtext width is measured incorrectly

3 participants