Reuse text_bounds in text_input::layout
This commit is contained in:
parent
45015e37d4
commit
927c3a8caa
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue