未验证 提交 953570a7 编写于 作者: J Jason Simmons 提交者: GitHub

libtxt: truncate paragraph width to an integer in order to match Blink's behavior (#5962)

See https://github.com/flutter/flutter/issues/18665
上级 7f083e54
......@@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) {
}
needs_layout_ = false;
width_ = width;
width_ = floor(width);
if (!ComputeLineBreaks())
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册