Skip to content

Commit

Permalink
Set Limits::width in TextEditor layout
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 12, 2024
1 parent 4081e2b commit 7c7e94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ where
state.highlighter_settings = self.highlighter_settings.clone();
}

let limits = limits.height(self.height);
let limits = limits.width(self.width).height(self.height);

internal.editor.update(
limits.shrink(self.padding).max(),
Expand Down

0 comments on commit 7c7e94c

Please sign in to comment.