Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const Applet = imports.ui.applet;
const St = imports.gi.St;
const Pango = imports.gi.Pango;
const Main = imports.ui.main;
const PopupMenu = imports.ui.popupMenu;
const Util = imports.misc.util;
Expand Down Expand Up @@ -232,6 +233,11 @@ class CinnamonKeyboardApplet extends Applet.Applet {
});
// Enforce a constant width and center the text
actor.set_style("min-width: 2.5em; text-align: center;");
// Never ellipsize the two-letter layout code: when the panel is
// packed St would shrink the label and render "…", which is as
// wide as the code itself - the layout gets hidden without
// saving any space.
actor.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
}

this._panel_icon_box.set_child(actor);
Expand All @@ -253,6 +259,8 @@ class CinnamonKeyboardApplet extends Applet.Applet {

// Enforce a constant width and center the text
actor.set_style("min-width: 2.5em; text-align: center;");
// See _syncGroup: never ellipsize the short code.
actor.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;

this._panel_icon_box.set_child(actor);
}
Expand Down
Loading