Use default_font_size for TextInput widget
This commit is contained in:
parent
946bbd2683
commit
dfeb3db003
3 changed files with 7 additions and 26 deletions
|
|
@ -105,13 +105,8 @@ impl scrollable::Renderer for Null {
|
|||
}
|
||||
|
||||
impl text_input::Renderer for Null {
|
||||
type Font = Font;
|
||||
type Style = ();
|
||||
|
||||
fn default_size(&self) -> u16 {
|
||||
20
|
||||
}
|
||||
|
||||
fn measure_value(&self, _value: &str, _size: u16, _font: Font) -> f32 {
|
||||
0.0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue