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

Add empty metrics to account for truncated whitespace for GetRectsForRange.#7164

Merged
GaryQian merged 3 commits intoflutter:masterfrom
GaryQian:rects
Dec 10, 2018
Merged

Add empty metrics to account for truncated whitespace for GetRectsForRange.#7164
GaryQian merged 3 commits intoflutter:masterfrom
GaryQian:rects

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Dec 10, 2018

On center and right justified text, we do not layout with trailing whitespace in order to correctly align.

This PR adds the metrics back in so that a zero width box will be returned in GetRectsForRange when requesting the boxes for these un-drawn whitespaces.

@GaryQian GaryQian merged commit 25c6c1b into flutter:master Dec 10, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
GaryQian added a commit to GaryQian/engine that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 11, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 12, 2018
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.

3 participants