Add height method to Slider

This commit is contained in:
Héctor Ramón Jiménez 2020-08-01 08:18:52 +02:00
parent 72cfe85f7f
commit 9ba4cfd23f
3 changed files with 29 additions and 24 deletions

View file

@ -197,9 +197,7 @@ impl checkbox::Renderer for Null {
impl slider::Renderer for Null {
type Style = ();
fn height(&self) -> u32 {
30
}
const DEFAULT_HEIGHT: u16 = 30;
fn draw(
&mut self,