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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:28:22+00:00 2026-05-31T12:28:22+00:00

Please check this almost identical question first: jQuery Sortable List – scroll bar jumps

  • 0

Please check this almost identical question first: jQuery Sortable List – scroll bar jumps up when sorting

I have exactly the same problem, only that I tried all the suggested solutions there with no luck

Here is the way to reproduce

  • create a sortable list
  • have it scrollable
  • scroll down
  • reorder items
  • scroll position “jumps” up

Here is the code (see also in JSFiddle)

Html

<ul id="panel" class="scroll">
    <li class="content" style="background-color:red">item1</li>
    <li class="content" style="background-color:green">item2</li>
    <li class="content" style="background-color:blue">item3</li>
    <li class="content" style="background-color:gray">item4</li>
    <li class="content" style="background-color:yellow">item5</li>    
</ul>​

JavaScript

$(function() {
    $("#panel").sortable({
        items: ".content",
        forcePlaceholderSize: true
    }).disableSelection();
    $(".content").disableSelection();

});​

CSS

.scroll{
    overflow: scroll;
    border:1px solid red;
    height: 200px;
    width: 150px;
}
.content{
    height: 50px;
    width: 100%;
}
​

Here is the code (in JSFiddle) after trying the notion of the accepted answer (with no luck)

I can try to understand why it happens (list get’s “shortened” for a quick second), but all attempts to use placeholders or helpers to avoid it didn’t work either. I feel I tried almost any permutation of the “scrollable” options with no luck

Browsers I tried

IE9, Firefox 10.0.1, and Chrome 17

JQuery versions

core 1.7.1, UI v 1.8.17

Am I doing something wrong? Is there a solution? Could it be a bug?

  • 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-31T12:28:24+00:00Added an answer on May 31, 2026 at 12:28 pm

    If you modifiy your CSS for the .scroll element by adding:

    position:relative;
    

    That should resolve this issue.

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

Sidebar

Related Questions

Please check this code out it compiles and runs absolutely fine.. The question is
First of, please check this picture: As you can see, left from Today and
First of all, please check this fiddle . The gif image and the text
Please check this link www.aboud-creative.com/demos/mckinley3 . There I have a jQuery Accordion with jCarousel
Please check this: http://img62.imageshack.us/img62/3598/ieff.png why is it more height than in FF.. i want
Can you guys please check this code, it is MVC3 Razor <p><strong><u>Skills:</u></strong> @foreach (var
I have created a DeclarativeServiceLibrary using VS2010 beta 2, Please check this image of
I want add my custom sidebar next right column all page. Please check this
This is how I want it to be: Please check to this link and
Please check this http://www.theprinterdepo.com/hp-designjet-750c-24-refurbished-plotter-1 in the quick overview, it shows some text with big

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.