[listview] Set ellipsize mode on creation of textbox

So if rows are added, they behave correctily.

Issue: #1746
This commit is contained in:
Dave Davenport 2022-11-18 08:46:16 +01:00
parent 96e81d1b56
commit c6ba962673
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ static void listview_add_widget(listview *lv, _listview_row *row, widget *wid,
row->textbox =
textbox_create(WIDGET(wid), WIDGET_TYPE_TEXTBOX_TEXT, "element-text",
TB_AUTOHEIGHT | flags, NORMAL, "DDD", 0, 0);
textbox_set_ellipsize(row->textbox, lv->emode);
box_add((box *)wid, WIDGET(row->textbox), TRUE);
} else if (strcasecmp(label, "element-index") == 0) {
row->index =