Treeview: When expanding nodes in search view, adjust height only for matching entries.

This commit is contained in:
Michael Drake 2017-09-22 09:39:47 +01:00
parent f653c33147
commit f86e9e505d

View File

@ -2154,7 +2154,9 @@ treeview_node_expand_internal(treeview *tree, treeview_node *node)
n->height += additional_height;
}
if (tree->search.search) {
if (tree->search.search &&
node->type == TREE_NODE_ENTRY &&
node->flags & TV_NFLAGS_MATCHED) {
tree->search.height += additional_height;
}