Take Into<Pixels> in TextEditor::width
Since a `Shrink` width would not make sense.
This commit is contained in:
parent
ac1d98aa9b
commit
4081e2b192
1 changed files with 2 additions and 2 deletions
|
|
@ -110,8 +110,8 @@ where
|
|||
}
|
||||
|
||||
/// Sets the width of the [`TextEditor`].
|
||||
pub fn width(mut self, width: impl Into<Length>) -> Self {
|
||||
self.width = width.into();
|
||||
pub fn width(mut self, width: impl Into<Pixels>) -> Self {
|
||||
self.width = Length::from(width.into());
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue