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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:28:26+00:00 2026-05-27T15:28:26+00:00

I am using: jquery-1.6.2 jquery-ui-1.8.16 collision 1.0.1 …to build a web-based block painting application.

  • 0

I am using:

jquery-1.6.2
jquery-ui-1.8.16
collision 1.0.1

…to build a web-based block painting application. I have a table grid which has selectable cells. Above that layer are the ‘marquees’. When a marquee is moved or resized, I wish the overlapping cells in the table below to have special classes applied to them so I started using collision 1.0.1.

It seemed to have exactly the desired effect, however when you drag a marquee and THEN resize it – the cells below no longer reflect collisions from the marquee above until you drag the marquee again. If you create a new marquee and just resize it, the the collisions are calculated accurately, it only goes wrong after a drag.

There is a demo at http://accessibledesign.net/block_painter/client/ (just drag a marquee on the screen)

Cells that are yellow reflect collision with the marquee above.

I have done extensive testing and can confirm that the resizable marquees themselves have all the correct properties, the fault seems to lie with the collision function:

$("#grid td.ui-selected").removeClass("ui-selected");
hits = DATA.elems.curMarquee.collision($("#grid td.col"))
hits.addClass("ui-selected");

This code is run on ‘stop’ of resizable or draggable – and is triggered at the correct time.

  • 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-27T15:28:26+00:00Added an answer on May 27, 2026 at 3:28 pm

    This is a bug in the jquery-ui-draggable-collision module, actually. Or more specifically, it was not designed to handle "resizeable" yet – that was going to be in a future version. If you don’t need the draggable-collision stuff, removing that should fix the issue.

    However, if you do need it, there is a workaround for now. Just before calling $("#target").collision(".obstacles"), do:

    $("#target").removeData("jqueryCollisionCoordinates")
    $("#target").removeData("jqueryUiDraggableCollisionRecentPosition")
    $(".obstacles").removeData("jqueryCollisionCoordinates")
    $(".obstacles").removeData("jqueryUiDraggableCollisionRecentPosition")
    

    And this will delete all the internal caching it does, so that it recalculates the collision from scratch, rather than using the previous version that was not yet updated.

    Note: If you can file a bug fix ticket on the sourceforge page, too, please, and link to this page, I’ll eventually patch it to work properly, and you’ll get a message when I do. You’re welcome to add your website to a review there as well, and I’ll try to keep posted users’ usage in mind when I make changes. Thanks!

    Also note: maybe it shouldn’t need to be said, but don’t depend on this working after version 1.0.1. Also don’t futz with the contents of those internals, or it might break in future versions – it’s not a public API.

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

Sidebar

Related Questions

Using jQuery, how would you find elements which have a particular style (eg: float:
I have a page on which I'm using JQuery Mobile. I am having difficulty
Using jQuery UI I have two radio buttons, Approve/Reject, which I would like to
Using jQuery validation plugin but it has no CSV validation. I have made an
Using Jquery , I have an array result [<a href=><img src=image1></a>,<a href=><img src=image2></a>] if
Using jQuery, how can I get the input element that has the caret's (cursor's)
Using jQuery Autocomplete, according to the docs you have to do the following to
Using jQuery 1.5.1 Tried this block of code in: head section as well as
I'm using jQuery UI Select Menu and occasionally have some issues. This is located
(using jquery) I have the following function $(function() { $('tr.parent') .css(cursor,pointer) .attr(title,Click to expand/collapse)

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.