From 0e0aef0f8570dee3292e941ee82f7019741b6aa9 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 10 Jul 2006 13:42:42 +0000 Subject: Fix 1496834. svn path=/trunk/netsurf/; revision=2726 --- riscos/treeview.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'riscos') diff --git a/riscos/treeview.c b/riscos/treeview.c index 8d6965f88..b8786ae59 100644 --- a/riscos/treeview.c +++ b/riscos/treeview.c @@ -727,6 +727,9 @@ bool ro_gui_tree_click(wimp_pointer *pointer, struct tree *tree) { scroll.w = (wimp_w)tree->handle; scroll.pause_zone_sizes.y0 = 80; scroll.pause_zone_sizes.y1 = 80; + if (tree->toolbar) + scroll.pause_zone_sizes.y1 += + ro_gui_theme_toolbar_height(tree->toolbar); scroll.pause_duration = 0; scroll.state_change = (void *)0; error = xwimp_auto_scroll(wimp_AUTO_SCROLL_ENABLE_VERTICAL, @@ -852,6 +855,9 @@ bool ro_gui_tree_click(wimp_pointer *pointer, struct tree *tree) { scroll.w = (wimp_w)tree->handle; scroll.pause_zone_sizes.y0 = 80; scroll.pause_zone_sizes.y1 = 80; + if (tree->toolbar) + scroll.pause_zone_sizes.y1 += + ro_gui_theme_toolbar_height(tree->toolbar); scroll.pause_duration = -1; scroll.state_change = (void *)0; error = xwimp_auto_scroll(wimp_AUTO_SCROLL_ENABLE_VERTICAL, -- cgit v1.2.3