提交 f5c907d6 编写于 作者: M Matt Perry 提交者: GitHub

Fix bug with text input where the cursor would render before a single (#2828)

trailing space rather than after.

We were including an empty rectangle in the list of TextBoxes for that
range.

BUG=https://github.com/flutter/flutter/issues/4911
上级 60f2622c
......@@ -224,7 +224,7 @@ void RenderText::appendAbsoluteTextBoxesForRange(std::vector<TextBox>& boxes, un
boxes.emplace_back(localToAbsoluteQuad(r).enclosingBoundingBox(), box->direction());
} else {
FloatRect rect = localQuadForTextBox(box, start, end, /* useSelectionHeight */ false);
if (!rect.isZero())
if (!rect.isEmpty())
boxes.emplace_back(localToAbsoluteQuad(rect).enclosingBoundingBox(), box->direction());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册