summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text_input.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-02-14 23:34:01 +0100
committerLibravatar GitHub <noreply@github.com>2020-02-14 23:34:01 +0100
commitcf53026b51df390d98d37f93259b7b7b0a25c6f8 (patch)
tree2074c0453d01515163603be8d94b105f46593465 /native/src/widget/text_input.rs
parentf79b94111fcc8efef2226456b51778e9ee697d53 (diff)
parent8f83c805b15230a2f35002cfff88d9653ee08690 (diff)
downloadiced-cf53026b51df390d98d37f93259b7b7b0a25c6f8.tar.gz
iced-cf53026b51df390d98d37f93259b7b7b0a25c6f8.tar.bz2
iced-cf53026b51df390d98d37f93259b7b7b0a25c6f8.zip
Merge pull request #187 from daxpedda/pub-node-align
Add `Node::move_to` and make `Node::align` public
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r--native/src/widget/text_input.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 04118755..c068b895 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -184,8 +184,7 @@ where
.height(Length::Units(text_size));
let mut text = layout::Node::new(limits.resolve(Size::ZERO));
- text.bounds.x = padding;
- text.bounds.y = padding;
+ text.move_to(Point::new(padding, padding));
layout::Node::with_children(text.size().pad(padding), vec![text])
}