mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
Treeview: Use helper to get tree height.
This commit is contained in:
parent
c6f92f2f2a
commit
83798a83b7
@ -3436,7 +3436,7 @@ static bool treeview_delete_selection(treeview *tree, struct rect *rect)
|
||||
rect->x0 = 0;
|
||||
rect->y0 = 0;
|
||||
rect->x1 = REDRAW_MAX;
|
||||
rect->y1 = tree->root->height;
|
||||
rect->y1 = treeview__get_display_height(tree);
|
||||
|
||||
sw.purpose = TREEVIEW_WALK_DELETE_SELECTION;
|
||||
sw.data.redraw.required = false;
|
||||
|
Loading…
Reference in New Issue
Block a user