From 502879043bb5262b0ef0dca7ca87477a6be7e801 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 9 Mar 2009 07:21:19 +0000 Subject: Fix scroll position for new pages/tabs svn path=/trunk/netsurf/; revision=6744 --- amiga/gui.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index f5a46a3cb..0dba71e2f 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1337,10 +1337,10 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw) browser_window_update(gwin->bw,false); - if((gwin->bw->window->scrollx) || (gwin->bw->window->scrolly)) - { +// if((gwin->bw->window->scrollx) || (gwin->bw->window->scrolly)) +// { gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly); - } +// } if(gwin->bw->current_content) gui_window_set_url(gwin->bw->window,gwin->bw->current_content->url); @@ -2302,6 +2302,9 @@ void gui_window_set_scroll(struct gui_window *g, int sx, int sy) g->shared->redraw_required = true; g->shared->redraw_data = NULL; + + g->scrollx = sx; + g->scrolly = sy; } } -- cgit v1.2.3