Questions tagged [scroll-position]

Tag related with keeping/changing/erasing scroll position or state in a View

76 questions
400
votes
20 answers

Maintain/Save/Restore scroll position when returning to a ListView

I have a long ListView that the user can scroll around before returning to the previous screen. When the user opens this ListView again, I want the list to be scrolled to the same point that it was previously. Any ideas on how to achieve this?
rantravee
  • 7,223
  • 9
  • 32
  • 46
58
votes
1 answer

Scroll Position of div with "overflow: auto"

Given this HTML snippet:
BlaM
  • 26,721
  • 31
  • 89
  • 104
27
votes
12 answers

How do I maintain scroll position in MVC?

Im working on a project in MVC and have enjoyed learning about it. There are a few growing pains but once you figure them out it's not bad. One thing that is really simple in the WebForms world is maintaining the scroll position on a page. All…
Papa Burgundy
  • 6,197
  • 6
  • 37
  • 48
19
votes
4 answers

Get current scroll position and pass it as a variable with a link?

I'll be honest, I'm way out of my depth here. I've created a pagination system where you click on a link it reloads the page and a certain number of list items are shown in an unordered list. When you click it again it'll reload the page and more…
dougoftheabaci
11
votes
5 answers

Maintain scroll position of a div within a page on postback

I have a div within an aspx page with overflow set to auto. The contents of the div are dynamically created and consists of a list of link buttons.
.....
When I scoll down in the div and…
Nikhil
  • 1,968
  • 7
  • 23
  • 33
9
votes
2 answers

Update SimpleCursorAdapter while maintaining scroll position in ListView

My problem: My ListView resets its scroll position to the top whenever I update its contents through its (customized) SimpleCursorAdapter. I would like the ListView to maintain its scroll position when updated. I started out by creating a new…
pvans
  • 987
  • 2
  • 9
  • 15
7
votes
8 answers

Reset scroll position after Async postback - ASP.NET

What is the best way to reset the scroll position to the top of page after the an asynchronous postback? The asynchronous postback is initiated from a ASP.NET GridView CommandField column and the ASP.NET update panel Update method is called in the…
Michael Kniskern
  • 23,162
  • 65
  • 156
  • 224
7
votes
0 answers

How to preserve the scroll position of tabView when using collapsible app bar (sliverAppBar)?

Problem: Scroll position of the tabView is not restored correctly when one of the tabView is scrolled to the top (revealing the sliverAppBar). The other tabView will also scrolled to the top (losing its previous scroll position). This problem will…
7
votes
1 answer

Current Nav Position Without Scroll-Linked Positioning

I'm getting the following error in my Firefox console, accompanied by jittery animations: This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; I checked out Firefox's support post, but I…
HWD
  • 1,887
  • 7
  • 30
  • 60
6
votes
1 answer

ScrollablePositionedList with SliverAppBar not working properly

This is a repository to create a minimal reproducible example. I want SliverAppBar hidden when ScrollablePositionedList.builder is Scrolled. This is the relevant piece of code I am including here. NestedScrollView( …
6
votes
4 answers

Browser does not remember position of page last viewed

I have done a few searches for this issue and I have come up empty handed. I hope somebody can clarify things for me and point me in the right direction. Problem: I have a page that displays a list of results after submitting a search form. When a…
VinkoCM
  • 337
  • 2
  • 6
  • 15
4
votes
3 answers

What is causing ListView to maintain its scroll-position after orientation change?

I have an Activity containing a ListView. I populate the list view using a SimpleCursorAdapter. When I run the app, I can manually scroll down in the ListView (e.g. to the 10th item). Then when I rotate my phone - this destroys and re-creates my…
MickeyR
  • 1,799
  • 2
  • 13
  • 22
4
votes
3 answers

Next.js maintain scroll position when page Routing

I am currently making a web site on Next.js boilerplate. My routing code is this. (below) import Link from 'next/link'
3
votes
1 answer

Android Jetpack Navigation Disable Scroll Position

I have a single activity with many fragments (Using jetpack navigation). On my first fragment, i have a recyclerview. If i scroll on the first fragment and then navigate to the other fragment, the fragment retains the scroll position and i don't…
3
votes
1 answer

Svelte: How to fetchMore if a user has scrolled to end of page

I have a Component which fetches posts from a graphql server. It shall fetch more posts if the user is at the bottom of the page. How can I check if he has reached it? I looked on clientHeight, innerHeight and outerHeight but only clientHeight made…
poku17
  • 31
  • 2
1
2 3 4 5 6