diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 9189104d76..8c70908688 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -143,10 +143,8 @@ where /// Choose whether or not to shrink the size of the editor to its contents. pub fn shrink_to_content(mut self, shrink: bool) -> Self { if shrink { - self.width = Length::Shrink; self.height = Length::Shrink; } else { - self.width = Length::Fill; self.height = Length::Fill; }