mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Re-revert wrong line_heights implementation (flutter/engine#6598)
This commit is contained in:
parent
36cc794c94
commit
2d0aae4047
@ -732,9 +732,9 @@ void Paragraph::Layout(double width, bool force) {
|
||||
auto update_line_metrics = [&](const SkPaint::FontMetrics& metrics,
|
||||
const TextStyle& style) {
|
||||
double line_spacing =
|
||||
(line_number == 0) ? -metrics.fAscent * style.height
|
||||
: (-metrics.fAscent + metrics.fLeading) *
|
||||
style.height * paragraph_style_.line_height;
|
||||
(line_number == 0)
|
||||
? -metrics.fAscent * style.height
|
||||
: (-metrics.fAscent + metrics.fLeading) * style.height;
|
||||
if (line_spacing > max_line_spacing) {
|
||||
max_line_spacing = line_spacing;
|
||||
if (line_number == 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user