diff options
author | 2024-02-07 21:48:28 +0100 | |
---|---|---|
committer | 2024-02-07 21:48:28 +0100 | |
commit | 2ba73b0faf04c21053f279e7c189b28ca718d853 (patch) | |
tree | 482aa7ceac3e22533cb0a1732c951337765e68a8 /core/src/text | |
parent | 8b492a9b443993f1db2d3df31a29bc68738d73c9 (diff) | |
download | iced-2ba73b0faf04c21053f279e7c189b28ca718d853.tar.gz iced-2ba73b0faf04c21053f279e7c189b28ca718d853.tar.bz2 iced-2ba73b0faf04c21053f279e7c189b28ca718d853.zip |
Fix wrapped lines not being considered when measuring `TextEditor`
Diffstat (limited to 'core/src/text')
-rw-r--r-- | core/src/text/editor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/text/editor.rs b/core/src/text/editor.rs index f3c6e342..fbf60696 100644 --- a/core/src/text/editor.rs +++ b/core/src/text/editor.rs @@ -36,6 +36,10 @@ pub trait Editor: Sized + Default { /// Returns the current boundaries of the [`Editor`]. fn bounds(&self) -> Size; + /// Returns the minimum boundaries to fit the current contents of + /// the [`Editor`]. + fn min_bounds(&self) -> Size; + /// Updates the [`Editor`] with some new attributes. fn update( &mut self, |