summaryrefslogtreecommitdiffstats
path: root/core/src/text
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/text')
-rw-r--r--core/src/text/editor.rs4
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,