Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] a little bug in dragdrop/examples/js/ygDDList.js

Expand Messages
  • Adam Moore
    ... Hi Earl, the hidden drop targets at the end of the list make it so that we only need to insert before other items. Thanks for pointing our the offsetLeft
    Message 1 of 2 , Feb 17, 2006
      On Fri, Feb 17, 2006 at 09:51:37AM -0800, Cahill, Earl wrote:

      > I read this to mean, if you are in the upper half of the element, insert
      > before it. I am pretty sure that you want offsetTop instead of
      > offsetLeft. Perhaps I am misreading it, but it sure seemed like my code
      > started to work after I made that change. It also seems strange that
      > the case of inserting below the node isn't covered. Looking at the
      > example, I see a hidden li at the end of the list, which I guess would
      > solve the no insertAfter problem.

      Hi Earl, the hidden drop targets at the end of the list make it so that
      we only need to insert before other items. Thanks for pointing our the
      offsetLeft error, that will be fixed.

      -Adam
    Your message has been successfully submitted and would be delivered to recipients shortly.