mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00:00
[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:
parent
e4d3b0536f
commit
5c8263ecb7
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user