diff --git a/src/Label.cpp b/src/Label.cpp index 3e6ba63..1c57b25 100644 --- a/src/Label.cpp +++ b/src/Label.cpp @@ -25,9 +25,10 @@ void Label::on_init() { void Label::on_paint() { auto painter = window()->painter(); + auto geometry = rect().max_geometry(); painter.source_rgb(style()->foreground()); - painter.text(rect(), m_text, PaintTextAlign::Left, PANGO_ELLIPSIZE_NONE, style()->font_description()); + painter.text(geometry, m_text, PaintTextAlign::Left, PANGO_ELLIPSIZE_END, style()->font_description()); painter.fill(); }