summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer/widget/text_input.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-10 01:34:22 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-10 01:39:36 +0200
commitb549b509c9454944dc629c4510b7f7e92ec21085 (patch)
tree898d585d046a0bfb509105ef648c4c5fef760d01 /wgpu/src/renderer/widget/text_input.rs
parent19f6a5e2fd685c76a06576e45c64e7c9e3b3a57f (diff)
downloadiced-b549b509c9454944dc629c4510b7f7e92ec21085.tar.gz
iced-b549b509c9454944dc629c4510b7f7e92ec21085.tar.bz2
iced-b549b509c9454944dc629c4510b7f7e92ec21085.zip
Align text in `iced_wgpu` on a case-by-case basis
Diffstat (limited to 'wgpu/src/renderer/widget/text_input.rs')
-rw-r--r--wgpu/src/renderer/widget/text_input.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/wgpu/src/renderer/widget/text_input.rs b/wgpu/src/renderer/widget/text_input.rs
index 1f804a1a..6f72db68 100644
--- a/wgpu/src/renderer/widget/text_input.rs
+++ b/wgpu/src/renderer/widget/text_input.rs
@@ -109,6 +109,7 @@ impl text_input::Renderer for Renderer {
},
font,
bounds: Rectangle {
+ y: text_bounds.center_y(),
width: f32::INFINITY,
..text_bounds
},