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

@ -27,14 +27,8 @@ impl<B> text_input::Renderer for Renderer<B>
where
B: Backend + backend::Text,
{
type Font = Font;
type Style = Box<dyn StyleSheet>;
fn default_size(&self) -> u16 {
// TODO: Make this configurable
20
}
fn measure_value(&self, value: &str, size: u16, font: Font) -> f32 {
let backend = self.backend();