mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
libtxt: truncate paragraph width to an integer in order to match Blink's behavior (flutter/engine#5962)
See https://github.com/flutter/flutter/issues/18665
This commit is contained in:
parent
21c7a646ca
commit
ee273cef41
@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) {
|
||||
}
|
||||
needs_layout_ = false;
|
||||
|
||||
width_ = width;
|
||||
width_ = floor(width);
|
||||
|
||||
if (!ComputeLineBreaks())
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user