From 56ac4baf17e5917c738257d8beab7a583c793fcb Mon Sep 17 00:00:00 2001 From: Chris Lord Date: Thu, 16 Apr 2009 16:34:15 +0100 Subject: [PATCH] [ClutterText] Return 1 for min width when editable Editable ClutterText will scroll when allocated less width than is necessary to lay out the entire layout on a single line, so return 1 for the minimum width in this case. Approved by Emmanuele Bassi, fixes bug #1555. --- clutter/clutter-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index a89138dab..bc04c1e51 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -1415,7 +1415,7 @@ clutter_text_get_preferred_width (ClutterActor *self, if (min_width_p) { - if (priv->wrap || priv->ellipsize) + if (priv->wrap || priv->ellipsize || priv->editable) *min_width_p = 1; else *min_width_p = layout_width;