Fix the accessor for desired rows.
This commit is contained in:
parent
aab1b351ab
commit
c7e199c8ac
1 changed files with 2 additions and 2 deletions
|
@ -197,8 +197,8 @@ impl<'t> TextEdit<'t> {
|
||||||
/// Set the number of rows to show by default.
|
/// Set the number of rows to show by default.
|
||||||
/// The default for singleline text is `1`.
|
/// The default for singleline text is `1`.
|
||||||
/// The default for multiline text is `4`.
|
/// The default for multiline text is `4`.
|
||||||
pub fn desired_rows(mut self, desired_width: f32) -> Self {
|
pub fn desired_rows(mut self, desired_height_rows: usize) -> Self {
|
||||||
self.desired_width = Some(desired_width);
|
self.desired_height_rows = desired_height_rows;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue