[lookingGlass] Fix scrolling in errorLog

When setting line_wrap, we need to unset the ellipsization, otherwise
ClutterText won't do what we want.
This commit is contained in:
Colin Walters 2010-06-03 12:47:15 -04:00
parent d387a2d531
commit 35f27ae150

View File

@ -431,6 +431,11 @@ ErrorLog.prototype = {
this.actor = new St.BoxLayout();
this.text = new St.Label();
this.actor.add(this.text);
// We need to override StLabel's default ellipsization when
// using line_wrap; otherwise ClutterText's layout is going
// to constrain both the width and height, which prevents
// scrolling.
this.text.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this.text.clutter_text.line_wrap = true;
this.actor.connect('notify::mapped', Lang.bind(this, this._renderText));
},