From 36e7ac2048a680ac0830dbbacad4bcf7b1f72ead Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 21 Dec 2019 05:30:48 +0100 Subject: Fix cursor positioning in `TextInput` on overflow --- native/src/renderer/null.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'native/src/renderer') diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs index 02f033a5..43076d61 100644 --- a/native/src/renderer/null.rs +++ b/native/src/renderer/null.rs @@ -93,6 +93,16 @@ impl text_input::Renderer for Null { 0.0 } + fn offset( + &self, + _text_bounds: Rectangle, + _size: u16, + _value: &text_input::Value, + _state: &text_input::State, + ) -> f32 { + 0.0 + } + fn draw( &mut self, _bounds: Rectangle, -- cgit