Skip to content

Commit

Permalink
chore: run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kyteware committed Jan 31, 2024
1 parent 244cd70 commit 16d8255
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ where
if self.height == Length::Fill {
layout::Node::new(limits.max())
} else {
let lines_height = self.line_height.to_absolute(self.text_size.unwrap_or(renderer.default_size())).0 * internal.editor.line_count() as f32;
let lines_height = self
.line_height
.to_absolute(self.text_size.unwrap_or(renderer.default_size()))
.0
* internal.editor.line_count() as f32;
let height = lines_height + self.padding.top + self.padding.bottom;
layout::Node::new(limits.max_height(height).max())
}
Expand Down

0 comments on commit 16d8255

Please sign in to comment.