Could somebody please lend me a hand with Drag.Move? I cannot get it
to behave at all. Why does this test case result in the draggable
elements being cluttered to the top left?

What I expect to happen is for each child element to be draggable and
droppable so that they can be dropped onto one another.

window.addEvent('domready', function() {
  var c = new Element('div', {
    styles: {
      border: '1px solid black',
      borderBottom: 'none',
      width: '400px',
      height: '400px'
    }
  });

  document.body.adopt(c);

  (10).times(function(i) {
    a.adopt(new Element('div', {
      'class': 'dragme',
      html: i,
      styles: {
        height: '39px',
        borderBottom: '1px solid black'
      }
    }));
  });

  $$('.dragme').each(function(el, i, els) {
    new Drag.Move(el, {
    });
  });
});

Thanks,
Thomas

Reply via email to