Reuse text_bounds in text_input::layout

This commit is contained in:
Héctor Ramón Jiménez 2023-04-11 05:59:08 +02:00
parent 45015e37d4
commit 927c3a8caa
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -475,7 +475,7 @@ where
let mut text = layout::Node::new(text_bounds);
text.move_to(Point::new(padding.left, padding.top));
layout::Node::with_children(text.size().pad(padding), vec![text])
layout::Node::with_children(text_bounds.pad(padding), vec![text])
}
}