diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 8c70908688..96ea78a7c4 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -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()) }