Fix cursor positioning in TextInput on overflow
This commit is contained in:
parent
453d2d5bb0
commit
36e7ac2048
3 changed files with 95 additions and 27 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue