Fix cursor positioning in TextInput on overflow

This commit is contained in:
Héctor Ramón Jiménez 2019-12-21 05:30:48 +01:00
parent 453d2d5bb0
commit 36e7ac2048
3 changed files with 95 additions and 27 deletions

View file

@ -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,