ui: Set the correct Pango ellpisizing mode

Whoops.
This commit is contained in:
Iris Morelle 2021-03-13 03:14:53 -03:00
parent 62183363b1
commit 2425b89789
2 changed files with 2 additions and 2 deletions

View file

@ -2916,7 +2916,7 @@ void display::refresh_report(const std::string& report_name, const config * new_
.set_foreground_color(item->font_rgb_set() ? item->font_rgb() : color_t{})
.set_maximum_width(area.w)
.set_maximum_height(area.h, false)
.set_ellipse_mode(PANGO_ELLIPSIZE_NONE)
.set_ellipse_mode(PANGO_ELLIPSIZE_END)
.set_characters_per_line(0);
surface s = text.render();

View file

@ -101,7 +101,7 @@ surface floating_label::create_surface()
.set_foreground_color(color_)
.set_maximum_width(width_ < 0 ? clip_rect_.w : width_)
.set_maximum_height(height_ < 0 ? clip_rect_.h : height_, true)
.set_ellipse_mode(PANGO_ELLIPSIZE_NONE)
.set_ellipse_mode(PANGO_ELLIPSIZE_END)
.set_characters_per_line(0);
// ignore last '\n'