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

  • Home
  • SEARCH
  • 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 8258025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:23:54+00:00 2026-06-08T02:23:54+00:00

Please read this question together with this jsFiddle . I have a jQuery Sortable

  • 0

Please read this question together with this jsFiddle.

I have a jQuery Sortable list where I want to contain the items within the parent container while dragging – no problem – I use the containment:'parent' option.

However, when the height of the second item is greater than the height of the first item, I am unable to drag the second item to the first position.

I have tried unsuccessfully to use the additional option tolerance:'pointer' (my preference) nor does it work with the default tolerance:'intersect'.

I understand from the docs that this is the expected behaviour for tolerance and works absolutely fine when the items have equal height.

Is there a workaround for my scenario where the second item has greater height than the first item?

  • 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-08T02:23:57+00:00Added an answer on June 8, 2026 at 2:23 am

    Adding the option cursorAt: { top:1 } resolves the issue. Link to the docs.

    Unfortunately, I have subsequently discovered there is the same problem when trying to drag a tall item to the bottom of the list.

    In the end my solution was to hack the _intersectsWithPointer function within jquery.ui.sortable.js.

    I have replaced:

    var c = this.options.axis === "x" || a.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, b.top, b.height),

    with:

    var c = this.options.axis === "x" || a.ui.isOverAxis(this.positionAbs.top + (this._getDragVerticalDirection() == "up" ? 0 : this.helperProportions.height), b.top, b.height),

    Now dragging any item of any height up- or downwards works absolutely fine.

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

Sidebar

Related Questions

This is my homework, but please read my problem description first. I have to
Guys before you start down voting me please read this question and please understand
There are some other variations of this question here at SO, but please read
UPDATED - please read further details below original question I have a select form
Please read this entire question before you try to mark this as too controversial.
Before this question is marked as duplicate, please read it. ;) There are already
So I have read this question ( Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
Update: Please read this question in the context of design principles, elegance, expression of
This is quite a complicated and brain busting question, so please read carefully and
Ok before you think Not another question like this please read this first. I

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.