Use default_font_size for TextInput widget

This commit is contained in:
Héctor Ramón Jiménez 2020-07-06 23:58:15 +02:00
parent 946bbd2683
commit dfeb3db003
3 changed files with 7 additions and 26 deletions

View file

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