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 6121147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:45:03+00:00 2026-05-23T15:45:03+00:00

I am using JScrollPane to style my scrollbars. However, I need to load the

  • 0

I am using JScrollPane to style my scrollbars. However, I need to load the content via ajax.

What I found it JSrollpane does not automatically add the scrollbar when the content exceeds the hight.

Can anyone suggest a work-around to this problem?

There are 2 examples. Test Block #1 uses JScrollPane and Test Block #2 uses the default scrollbar.

If you click in the red box in either test case, sample content is added in response. You’ll notice the default scrollbar adjusts automatically but jscrollpane does not adjust even though the content is added.

  • 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-05-23T15:45:04+00:00Added an answer on May 23, 2026 at 3:45 pm

    To anyone who is interested …

    The solution is actually annoyingly simple – you recall the jscrollPane() function on the desired element each time content is loaded into the element.

    i.e:

    $('div#block-block-1 div.content').jScrollPane();
    
        $('div#block-block-1 div.content').click(
            function(){
                $(this).text( $(this).text() + "Pellentesque eget diam enim; et mattis nullaPellentesque eget diam enim; et mattis nulla." );
                $(this).css('text-indent', '0');
                $('div#block-block-1 div.content').jScrollPane();
            }
        );
    

    JScrollPane is applied to the div.content initially and then also each time more content is loaded in when responding to a click event. This way the custom scrollbar automatically adjusts.

    I hope that helps someone.

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

Sidebar

Related Questions

I have scrollbars using the jScrollPane plug-in for jQuery. The scrollbar works, all content
I'm using jScrollPane to create a custom scroll bar style. View my current code
I am using the following PNG fix for IE6 but it does not appear
Im using the jscrollpane jquery plugin. My content are images that expand when you
I have and issue with scrolling content of a jScrollPane div using the mousewheel,
I have a resizable div which is using custom scrollbars of jScrollPane. I want
I am using jScrollPane to scroll a div. Currently the default is to click
I have embedded a JTextArea on a JScrollPane and am using that JTextArea for
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I'm using jScrollPane to create a timeline effect within a horizontally scrolling window. Using

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.