Use default padding of TextInput in ComboBox
This commit is contained in:
parent
14fb723eec
commit
9eb2889d09
2 changed files with 5 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ where
|
|||
on_input: None,
|
||||
on_blur: None,
|
||||
menu_style: Default::default(),
|
||||
padding: Padding::new(0.0),
|
||||
padding: text_input::DEFAULT_PADDING,
|
||||
size: None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,9 @@ where
|
|||
style: <Renderer::Theme as StyleSheet>::Style,
|
||||
}
|
||||
|
||||
/// The default [`Padding`] of a [`TextInput`].
|
||||
pub const DEFAULT_PADDING: Padding = Padding::new(5.0);
|
||||
|
||||
impl<'a, Message, Renderer> TextInput<'a, Message, Renderer>
|
||||
where
|
||||
Message: Clone,
|
||||
|
|
@ -95,7 +98,7 @@ where
|
|||
is_secure: false,
|
||||
font: None,
|
||||
width: Length::Fill,
|
||||
padding: Padding::new(5.0),
|
||||
padding: DEFAULT_PADDING,
|
||||
size: None,
|
||||
line_height: text::LineHeight::default(),
|
||||
on_input: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue