summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-22 08:39:47 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-09-22 08:39:47 (GMT)
commitf86e9e505dea633a893b3d2d3b73d4bb8cc3d02b (patch)
tree847ee5e04552fc1dabd4cb03b6f3b0fc9d4ca36d
parentf653c3314791f2559f7e9faa6f2798244949bd4f (diff)
downloadnetsurf-f86e9e505dea633a893b3d2d3b73d4bb8cc3d02b.tar.gz
netsurf-f86e9e505dea633a893b3d2d3b73d4bb8cc3d02b.tar.bz2
Treeview: When expanding nodes in search view, adjust height only for matching entries.
-rw-r--r--desktop/treeview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 1de4bf9..1ed6611 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -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;
}