Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8811747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:26:29+00:00 2026-06-14T03:26:29+00:00

I have a search results list that has say 100 items in it. When

  • 0

I have a search results list that has say 100 items in it. When displayed the browser scroll bar appears. no problem so far.

However, when the user now searches again, this time netting only 8 results, the results fit on the page and the scroll bar disappears. Again, no problem.

However what I now want to do is to make this look fancy. So I want to fade out the results, then fade in the new ones.

The problem is that as you fade out, the whole window resizes, as it’s designed to do, the scroll bar goes and then the new results are displayed. If the new results require a scroll bar then this looks kinda odd as it first disappears then reappears.

Is there a purely jQuery way to put off the window resize, and hence keep the scroll bar visible, until the next load of results has been fully shown?

The effect I’m looking for is that if both results required a scroll bar then you fade out the first results, scroll bar stays, fade in the next, scroll bar stays. rather than have it disappear and then reappear.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:26:30+00:00Added an answer on June 14, 2026 at 3:26 am

    The vertical scrollbar appears based on the height of the content in your document as compared to the window height. So, the scrollbar appears when you add the content to the document that it taller than the window or disappears when the content is no longer taller than the window.

    If you want to control the scrollbar during the transition and make it independent of the content height, then you will have to manually force the scrollbar on or off using CSS depending upon what you’re trying to do. This can be done by setting the overflow-y style property on the body object. For example:

    $(document.body).css("overflow-y", "scroll");
    

    will force the scrollbar to stay on. You can see the options for overflow-y here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a search page that if there is results in the list it
I have a page that displays search results and has a DOM like the
I have a ListView that shows a list of search results. To make things
I have a ListActivity that displays a list of search results I grab from
I have a list of objects that store search results for a feed search
Hey. I have a list of items that the user can search. The search
Say I have a website that has 100 products. Then this is filtered down
so here's the problem I have one form, it outputs search results after submit,
I have a table (lets say it has one column called 'colLanguage') that contains
I have an app that has a list as its main activity and then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.