fix(Label): ELLIPSIZE all label modules

This commit is contained in:
Alex
2019-06-28 13:49:04 +02:00
parent 22ddbde394
commit bd5146fdcf
2 changed files with 2 additions and 3 deletions

View File

@ -21,6 +21,8 @@ ALabel::ALabel(const Json::Value& config, const std::string& name, const std::st
if (config_["max-length"].isUInt()) {
label_.set_max_width_chars(config_["max-length"].asUInt());
label_.set_ellipsize(Pango::EllipsizeMode::ELLIPSIZE_END);
} else if (label_.get_max_width_chars() == -1) {
label_.set_ellipsize(Pango::EllipsizeMode::ELLIPSIZE_END);
}
if (config_["rotate"].isUInt()) {