I#1586 - ETable: Grouping by column misplaces group content

That being caused by the uniform row height use. Let the ETable
use the value only if not grouping the rows.

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1586
This commit is contained in:
Milan Crha
2021-09-17 11:24:50 +02:00
parent e33e24fae2
commit 8e88e62286

View File

@ -1119,7 +1119,7 @@ et_build_groups (ETable *et)
"drawfocus", et->draw_focus,
"cursor_mode", et->cursor_mode,
"length_threshold", et->length_threshold,
"uniform_row_height", et->uniform_row_height,
"uniform_row_height", et->uniform_row_height && !et->is_grouped,
"selection_model", et->selection,
NULL);
@ -2208,8 +2208,7 @@ et_set_property (GObject *object,
if (etable->group) {
gnome_canvas_item_set (
GNOME_CANVAS_ITEM (etable->group),
"uniform_row_height",
etable->uniform_row_height,
"uniform_row_height", etable->uniform_row_height && !etable->is_grouped,
NULL);
}
break;