diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-09 07:21:19 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-09 07:21:19 +0000 |
commit | 502879043bb5262b0ef0dca7ca87477a6be7e801 (patch) | |
tree | ab26ca4eb86a013fdadddd078d72d59673af3477 /amiga/gui.c | |
parent | 07e1187b69b1b31794e4f2ff2c4a60101c5bf0ad (diff) | |
download | netsurf-502879043bb5262b0ef0dca7ca87477a6be7e801.tar.gz netsurf-502879043bb5262b0ef0dca7ca87477a6be7e801.tar.bz2 |
Fix scroll position for new pages/tabs
svn path=/trunk/netsurf/; revision=6744
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 9 |
1 files 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; } } |