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

Drag and Drop for fixed-position elements

Expand Messages
  • Jeremy Smith
    Hi, I think I asked about this before, but I wanted to check if anyone has found a solution for using Drag and Drop from fixed-position elements. IIRC, the
    Message 1 of 3 , Oct 2, 2008
    • 0 Attachment
      Hi,

      I think I asked about this before, but I wanted to check if anyone has
      found a solution for using Drag and Drop from fixed-position elements.
      IIRC, the answer I got before was that this is not supported because IE6
      doesn't support fixed positioning. Will this feature be added when IE6
      is dropped from A-grade support? Surely that will be happening any day
      now, right? :-P

      Right now I'm having to avoid fixed positioning and use scroll
      listeners, which look really bad as they try to keep up with the
      scrolling. So I wanted to check if anyone has patched this for their
      own purposes.

      Thanks,
      Jeremy
    • Dav Glass
      Jeremy -- There is more too it than just IE6 not supporting fixed positioning. position: fixed in all A-Grade browsers performs differently. Some you can give
      Message 2 of 3 , Oct 2, 2008
      • 0 Attachment
        Jeremy --

        There is more too it than just IE6 not supporting fixed positioning.

        position: fixed in all A-Grade browsers performs differently. Some you can give them top/left setting, some you can't.
        Some you can get the x/y position of it, some you can't get it reliably.

        So until those are fixed, "position: fixed" will probably not be supported.

        Are you using position: fixed for a DDTarget or a DD?

        Dav

        Dav Glass
        dav.glass@...
        blog.davglass.com




        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +



        ----- Original Message ----
        > From: Jeremy Smith <jeremy@...>
        > To: ydn-javascript@yahoogroups.com
        > Sent: Thursday, October 2, 2008 12:47:17 PM
        > Subject: [ydn-javascript] Drag and Drop for fixed-position elements
        >
        > Hi,
        >
        > I think I asked about this before, but I wanted to check if anyone has
        > found a solution for using Drag and Drop from fixed-position elements.
        > IIRC, the answer I got before was that this is not supported because IE6
        > doesn't support fixed positioning. Will this feature be added when IE6
        > is dropped from A-grade support? Surely that will be happening any day
        > now, right? :-P
        >
        > Right now I'm having to avoid fixed positioning and use scroll
        > listeners, which look really bad as they try to keep up with the
        > scrolling. So I wanted to check if anyone has patched this for their
        > own purposes.
        >
        > Thanks,
        > Jeremy
        >
        > ------------------------------------
        >
        > Yahoo! Groups Links
        >
        >
        >
      • Jeremy Smith
        Dav -- Thanks for the response. I would like to use it for a DD, not a DDTarget. My position: fixed elements perform as expected in all the browsers I ve
        Message 3 of 3 , Oct 2, 2008
        • 0 Attachment
          Dav --

          Thanks for the response. I would like to use it for a DD, not a
          DDTarget. My position: fixed elements perform as expected in all the
          browsers I've checked. The only thing that didn't work was drag and
          drop, because YUI doesn't take the fixed positioning into account when
          it's calculating mouse hits - for some reason, it uses a position cache
          instead of attaching listeners to the DD elements themselves (probably a
          performance optimization).

          I could probably patch it myself and have it work acceptably, but I am
          loath to deviate my YUI libraries from the standard set unless it is a
          widely-used fix.

          Thanks,
          Jeremy

          Dav Glass wrote:
          >
          >
          > Jeremy --
          >
          > There is more too it than just IE6 not supporting fixed positioning.
          >
          > position: fixed in all A-Grade browsers performs differently. Some you
          > can give them top/left setting, some you can't.
          > Some you can get the x/y position of it, some you can't get it reliably.
          >
          > So until those are fixed, "position: fixed" will probably not be
          > supported.
          >
          > Are you using position: fixed for a DDTarget or a DD?
          >
          > Dav
          >
          > Dav Glass
          > dav.glass@... <mailto:dav.glass%40yahoo.com>
          > blog.davglass.com
          >
          > + Windows: n. - The most successful computer virus, ever. +
          > + A computer without a Microsoft operating system is like a dog
          > without bricks tied to its head +
          > + A Microsoft Certified Systems Engineer is to computing what a
          > McDonalds Certified Food Specialist is to fine cuisine +
          >
          > ----- Original Message ----
          > > From: Jeremy Smith <jeremy@... <mailto:jeremy%40pinacol.com>>
          > > To: ydn-javascript@yahoogroups.com
          > <mailto:ydn-javascript%40yahoogroups.com>
          > > Sent: Thursday, October 2, 2008 12:47:17 PM
          > > Subject: [ydn-javascript] Drag and Drop for fixed-position elements
          > >
          > > Hi,
          > >
          > > I think I asked about this before, but I wanted to check if anyone has
          > > found a solution for using Drag and Drop from fixed-position elements.
          > > IIRC, the answer I got before was that this is not supported because
          > IE6
          > > doesn't support fixed positioning. Will this feature be added when IE6
          > > is dropped from A-grade support? Surely that will be happening any day
          > > now, right? :-P
          > >
          > > Right now I'm having to avoid fixed positioning and use scroll
          > > listeners, which look really bad as they try to keep up with the
          > > scrolling. So I wanted to check if anyone has patched this for their
          > > own purposes.
          > >
          > > Thanks,
          > > Jeremy
          > >
          > > ------------------------------------
          > >
          > > Yahoo! Groups Links
          > >
          > >
          > >
          >
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.