summaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:59:08 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:59:20 +0200
commit927c3a8caaefc241c48d6200266d286e20dc2076 (patch)
tree18e5a9053b092cb9d0d9f0b95f35b1bdeb6aaa7f /native/src
parent45015e37d4123f01b546337e741820975fccf66a (diff)
downloadiced-927c3a8caaefc241c48d6200266d286e20dc2076.tar.gz
iced-927c3a8caaefc241c48d6200266d286e20dc2076.tar.bz2
iced-927c3a8caaefc241c48d6200266d286e20dc2076.zip
Reuse `text_bounds` in `text_input::layout`
Diffstat (limited to 'native/src')
-rw-r--r--native/src/widget/text_input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index bb397645..fd61a849 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -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])
}
}