Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Maintain Scrolled Page Position After Selecting each Tab? (3 posts)

Started 6 months ago by: Quint

  • Profile picture of Quint Quint said 6 months ago:

    Here’s the lowdown: The header height for my theme takes up about 300px and the Buddypress container height is about 900px. Needless to say, to see the full Buddypress container, the user has to scroll to fit it in the viewable area (which it fits in nicely).

    What will be an annoyance for the user it when they start moving from tab to tab (for example from activity to profile to sites, messages, etc), the page location resets back to the top of the window each time a new tab is selected. Is there a way to stop this reset? Thanks!

  • Profile picture of Paul Gibbs Paul Gibbs said 6 months ago:

    Are your tabs loading new page content with JavaScript?

  • Profile picture of Quint Quint said 6 months ago:

    @djpaul,

    I don’t believe I am unless a plugin is doing that. Just so that I’m clear, if I use BP Default, choose my Profile, scroll up so that the top of my avatar just kisses the admin bar, and then select the Sites tab or any other tab, the page position resets itself to the very top of the window.