forked from firka/flutter
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:
@@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) {
|
||||
}
|
||||
needs_layout_ = false;
|
||||
|
||||
width_ = width;
|
||||
width_ = floor(width);
|
||||
|
||||
if (!ComputeLineBreaks())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user