Skip to main content

Bug Tracker

Side navigation

#2629 closed bug (worksforme)

Opened April 01, 2008 02:05PM UTC

Closed May 21, 2008 04:02AM UTC

Drag & Drop: Position isn't calculated well

Reported by: jg Owned by: braeker
Priority: minor Milestone: 1.2.4
Component: ui 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)
Change History (7)

Changed April 01, 2008 06:43PM UTC by paul comment:1

owner: paulbraeker

Changed April 02, 2008 09:30AM UTC by jg comment:2

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 April 02, 2008 11:29AM UTC by jg comment:3

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 May 03, 2008 07:23AM UTC by paul comment:4

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

Changed May 04, 2008 08:26AM UTC by paul comment:5

priority: majorminor

Changed May 07, 2008 01:14PM UTC by jg comment:6

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 May 21, 2008 04:02AM UTC by braeker comment:7

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