Make PickList padding consistent with Button
This commit is contained in:
parent
c99e599647
commit
1db823b4c5
2 changed files with 10 additions and 13 deletions
|
|
@ -58,9 +58,6 @@ where
|
|||
Message: Clone,
|
||||
Renderer: text::Renderer,
|
||||
{
|
||||
/// The default padding of a [`PickList`].
|
||||
pub const DEFAULT_PADDING: Padding = Padding::new(5.0);
|
||||
|
||||
/// Creates a new [`PickList`] with the given list of options, the current
|
||||
/// selected value, and the message to produce when an option is selected.
|
||||
pub fn new(
|
||||
|
|
@ -79,7 +76,7 @@ where
|
|||
placeholder: None,
|
||||
selected,
|
||||
width: Length::Shrink,
|
||||
padding: Self::DEFAULT_PADDING,
|
||||
padding: crate::button::DEFAULT_PADDING,
|
||||
text_size: None,
|
||||
text_line_height: text::LineHeight::default(),
|
||||
text_shaping: text::Shaping::Basic,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue