Skip to content

Commit

Permalink
fix: only shrink height
Browse files Browse the repository at this point in the history
  • Loading branch information
kyteware committed Jan 29, 2024
1 parent bec6aa2 commit 244cd70
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 244cd70

Please sign in to comment.