Bug Tracker

Ticket #2629 (closed bug: worksforme)

Opened 9 months ago

Last modified 8 months ago

Drag & Drop: Position isn't calculated well

Reported by: jg Assigned to: braeker
Type: bug Priority: minor
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords: position draggable droppable
Cc: Needs: Patch

Description

I've got an container which is margin: auto. If I want to move my draggables into a droppable the position is wrong calculated.

maybe the problem isn't margin:auto if you want i can give you my testcase

I've used the ui files in the your repository

Attachments

dragNdropTestcase.zip (82.3 kB) - added by jg 9 months ago.
dragNdropTestcaseNew.zip (82.8 kB) - added by jg 8 months ago.
SVN Links used for jQuery UI files

Change History

Changed 9 months ago by paul

  • owner changed from paul to braeker

Changed 9 months ago by jg

Changed 9 months ago by jg

i've attached a the testcase i've done (tested mainly in Firefox). try to throw the products into the trashbin and you see the positions aren't calculated well. if the product is over the dropzone, the dropzone will change to green. The position of the third product is right i think. many thanks

Changed 9 months ago by jg

the position is also not correct if i try to sort the products with:

$("#resultWrap").sortable({
  items: 'div.productWrap'
});

here the product jumps to another position if you try to sort it

Changed 8 months ago by paul

Can you recheck it please with the newest revision from Subversion or 1.5b2 from the download page? Thanks!

Changed 8 months ago by paul

  • priority changed from major to minor

Changed 8 months ago by jg

SVN Links used for jQuery UI files

Changed 8 months ago by jg

Unfortunally it's still not working. I've changed the testcase, so the current ui svn files will be used. another thing is that the drag-handler not working anymore

Changed 8 months ago by braeker

  • status changed from new to closed
  • resolution set to worksforme

Hi jg,

I was looking your code and I believe your css is causing the problem, I've made some tests and it works in all cases. I coud check you combine a lot of unecessary properties on your css, like static positions.

Make your css more clean and test again!

Good luck :)

Note: See TracTickets for help on using tickets.