mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Treeview: When expanding nodes in search view, adjust height only for matching entries.
This commit is contained in:
parent
f653c33147
commit
f86e9e505d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user