Set Limits::width in TextEditor layout

This commit is contained in:
Héctor Ramón Jiménez 2024-09-13 01:10:36 +02:00
parent 4081e2b192
commit 7c7e94c8d1
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

@ -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(),