[text] Limit the Layout width

We only want to eschew the pango_layout_set_width() on editable,
single-line Text actors because they can "scroll" the PangoLayout.

This fixes the ellipsization on entries.
This commit is contained in:
Emmanuele Bassi 2009-04-21 11:59:38 +01:00
parent e4d3b0536f
commit 5c8263ecb7

View File

@ -309,11 +309,11 @@ clutter_text_create_layout_no_cache (ClutterText *text,
} }
} }
/* we only limit the layout when in multi-line mode since the /* we do not limit the layout width on editable, single-line
* single line mode will take care of scrolling to accomodate * text actors, since those can scroll the layout
* the allocation width
*/ */
if (allocation_width > 0 && !priv->single_line_mode) if (allocation_width > 0 &&
!(priv->editable && priv->single_line_mode))
{ {
gint width; gint width;