summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2019-01-19 15:12:03 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2019-01-19 15:12:03 +0000
commit9501c9e68d336f894470d45a317f9a2123dcca80 (patch)
treeb1e7f35c472e9e09710bba0c20d417427b3b37bf
parent83798a83b77be8c6cf3778c93ac5e0611865935b (diff)
downloadnetsurf-master.tar.gz
netsurf-master.tar.bz2
Treeview: Consider search bar for redraw area calculation.HEADmaster
-rw-r--r--desktop/treeview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 5bbac1e25..27f6e22b6 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -3441,7 +3441,7 @@ static bool treeview_delete_selection(treeview *tree, struct rect *rect)
sw.purpose = TREEVIEW_WALK_DELETE_SELECTION;
sw.data.redraw.required = false;
sw.data.redraw.rect = rect;
- sw.current_y = 0;
+ sw.current_y = treeview__get_search_height(tree);
sw.tree = tree;
treeview_walk_internal(tree, tree->root,
@@ -3474,7 +3474,7 @@ static bool treeview_propagate_selection(treeview *tree, struct rect *rect)
sw.purpose = TREEVIEW_WALK_PROPAGATE_SELECTION;
sw.data.redraw.required = false;
sw.data.redraw.rect = rect;
- sw.current_y = 0;
+ sw.current_y = treeview__get_search_height(tree);
sw.tree = tree;
treeview_walk_internal(tree, tree->root,