Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2629 closed bug (worksforme)

Drag & Drop: Position isn't calculated well

Reported by: jg Owned by: eduardo
Priority: minor Milestone:
Component: ui.core Version: 1.2.3
Keywords: position draggable droppable Cc:
Blocked by: Blocking:

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 (2)

dragNdropTestcase.zip (82.3 KB) - added by jg 15 years ago.
dragNdropTestcaseNew.zip (82.8 KB) - added by jg 15 years ago.
SVN Links used for jQuery UI files

Download all attachments as: .zip

Change History (10)

comment:1 Changed 15 years ago by paul

Owner: changed from paul to braeker

Changed 15 years ago by jg

Attachment: dragNdropTestcase.zip added

comment:2 Changed 15 years 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

comment:3 Changed 15 years 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

comment:4 Changed 15 years ago by paul

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

comment:5 Changed 15 years ago by paul

Priority: majorminor

Changed 15 years ago by jg

Attachment: dragNdropTestcaseNew.zip added

SVN Links used for jQuery UI files

comment:6 Changed 15 years 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

comment:7 Changed 15 years ago by braeker

Resolution: worksforme
Status: newclosed

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 :)

comment:8 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

Note: See TracTickets for help on using tickets.