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

Re: Drag and drop out of scrolling container div

Expand Messages
  • mrtkr
    yes!! there is a hack: just use: overflow: visible; ... martin ... of the ... scroll or ... Container
    Message 1 of 4 , Dec 1, 2006
    • 0 Attachment
      yes!! there is a hack:

      just use:

      overflow: visible;

      :-)

      martin

      --- In ydn-javascript@yahoogroups.com, "mrtkr" <mrtkr@...> wrote:
      >
      > hi
      >
      > I have the same problem. It looks like its a firefox problem. On IE it
      > works.
      >
      > But it looks as this is not a yui problem, but more a problem of
      > firefox. If you move the div with javascript it has the same effect.
      >
      > Also if you start with a high z-index for your dragdrop item, it does
      > not solve this.
      >
      > Is there any hack for this?
      >
      >
      > --- In ydn-javascript@yahoogroups.com, "djfep" <djfep@> wrote:
      > >
      > > I have a drag and drop function that works great if the container
      of the
      > > draggable things is a normal div. But if I set the overflow to
      scroll or
      > > auto, then the dragged items stay inside the container. Here is a
      > > diagram:
      > >
      > > +------------------+ +------------------+
      > > | Container | | Drag here |
      > > | | | |
      > > | Item | | |
      > > +------------------+ +------------------+
      > >
      > > If I drag 'Item' to 'Drag here', the the 'Item' stays on the
      'Container'
      > > div and is under the 'Drag here' div.
      > >
      > > Any help is appreciated.
      > >
      > > Dan
      > >
      >
    • mrtkr
      sorry, I was wrong.
      Message 2 of 4 , Dec 1, 2006
      • 0 Attachment
        sorry, I was wrong.

        --- In ydn-javascript@yahoogroups.com, "mrtkr" <mrtkr@...> wrote:
        >
        > yes!! there is a hack:
        >
        > just use:
        >
        > overflow: visible;
        >
        > :-)
        >
        > martin
        >
        > --- In ydn-javascript@yahoogroups.com, "mrtkr" <mrtkr@> wrote:
        > >
        > > hi
        > >
        > > I have the same problem. It looks like its a firefox problem. On IE it
        > > works.
        > >
        > > But it looks as this is not a yui problem, but more a problem of
        > > firefox. If you move the div with javascript it has the same effect.
        > >
        > > Also if you start with a high z-index for your dragdrop item, it does
        > > not solve this.
        > >
        > > Is there any hack for this?
        > >
        > >
        > > --- In ydn-javascript@yahoogroups.com, "djfep" <djfep@> wrote:
        > > >
        > > > I have a drag and drop function that works great if the container
        > of the
        > > > draggable things is a normal div. But if I set the overflow to
        > scroll or
        > > > auto, then the dragged items stay inside the container. Here is a
        > > > diagram:
        > > >
        > > > +------------------+ +------------------+
        > > > | Container | | Drag here |
        > > > | | | |
        > > > | Item | | |
        > > > +------------------+ +------------------+
        > > >
        > > > If I drag 'Item' to 'Drag here', the the 'Item' stays on the
        > 'Container'
        > > > div and is under the 'Drag here' div.
        > > >
        > > > Any help is appreciated.
        > > >
        > > > Dan
        > > >
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.