Got no clue myself - please submit it to the bugtracker with a test case if
possible. Good news is that it might be related to the offset generation,
which Brandon is rewriting right now.

Cheers,
Paul

On Fri, Nov 7, 2008 at 8:33 AM, Jeffrey Kretz <[EMAIL PROTECTED]> wrote:

>
> Well, I'm stumped.
>
> Anyone else got any ideas?
>
> JK
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of tallvanilla
> Sent: Thursday, November 06, 2008 4:47 PM
> To: jQuery UI
> Subject: [jquery-ui] Re: SORTABLE: inconsistent drag behavior ( demo
> included )
>
>
> No change, Jeffrey. I updated both of my demo pages with the
> additional doctype attribute, but all of the same quirks exist.
>
> With body margin-top 10px:
> http://74.205.126.197/dragtest/index.php
>
> Without body margin-top 10px:
> http://74.205.126.197/dragtest/index2.php
>
> JR
>
>
>
> On Nov 6, 9:41 am, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> > I believe that the IE6 problem may be related to your page being rendered
> in
> > Quirks Mode.
> >
> > Your browser DOCTYPE is missing an attribute.  Use this one instead:
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> >
> > See if that fixes the IE6 issue.
> >
> > It is entirely possible that that may have been the source of the margin
> > issue as well.  After fixing the DOCTYPE, put the margin:10px back in
> your
> > body tag and see if it still jumps in FF3.
> >
> > JK
> >
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED] On
> >
> > Behalf Of tallvanilla
> > Sent: Thursday, November 06, 2008 9:17 AM
> > To: jQuery UI
> > Subject: [jquery-ui] Re: SORTABLE: inconsistent drag behavior ( demo
> > included )
> >
> > I've tested it on two IE6s with the same results. The jump is subtle
> > (2-3 pixels up/left), but it's there.
> >
> > I really would like to see the margin issue addressed. Imagine wanting
> > to use a body margin-top throughout your website and adding it to your
> > header template. If the page using sortables has to have a margin-top
> > of zero, then so do ALL of your website's pages. That's a hard pill to
> > swallow (even if you crush it into tiny pieces first).
> >
> > Maybe I'll open a ticket on it. Thanks for the detailed info above. It
> > will be helpful in the mean time.
> >
> > JR
> >
> > On Nov 5, 11:54 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> > > It is important to note that the issue is specifically related to
> margins
> > on
> > > the <body> element.
> >
> > > Margins in other areas in the DOM do not affect the offset()
> calculation
> > > (which is the reason why it is jumping).
> >
> > > As a note, I have also had CSS inconsistencies with margins on the
> body,
> > > which is why I tend to avoid them.  For example, I have an admin
> toolbar
> > for
> > > a CMS site which sits at the top of the page with a position:absolute
> and
> > is
> > > 30px tall.  When I add a margin-top:30px to the body element to make
> room
> > > for it, not every browser renders it the same.  But the
> padding-top:30px
> > > worked fine across IE6/7 FF2/3 Chrome Opera and Safari Mac/Win.
> >
> > > This isn't to say that the issue shouldn't be addressed, though.  You
> can
> > > open a ticket on it at dev.jquery.com.
> >
> > > Cheers,
> > > JK
> >
> > > Oh, before I forget, I have IE6 installed on another machine in my
> office
> > > for testing purposes, and I didn't notice any jump in it.  Either in
> the
> > > original one with the margins or the fixed one.  Do you have access to
> > > another IE6 machine you can check?
> >
> > > -----Original Message-----
> > > From: [email protected] [mailto:[EMAIL PROTECTED]
> On
> >
> > > Behalf Of tallvanilla
> > > Sent: Wednesday, November 05, 2008 10:57 PM
> > > To: jQuery UI
> > > Subject: [jquery-ui] Re: SORTABLE: inconsistent drag behavior ( demo
> > > included )
> >
> > > Wow... thanks Jeffrey!  That solved it for Firefox 3 and Opera!
> >
> > >http://74.205.126.197/dragtest/index2.php
> >
> > > IE6 didn't change though. Same offset while dragging.
> >
> > > But this is still a sortables bug, because document margins shouldn't
> > > have any effect on drag behaviors. I mean, you shouldn't have to
> > > remove margins to accommodate sortables.
> >
> > > I don't suppose the UI team is interested in properly fixing this?
> >
> > > JR
> >
> > > On Nov 5, 10:42 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> > > > The problem is related to the margin:10px you have set for your body
> > > > element.
> >
> > > > When I set the margin for 0px (using Firebug), the problem went away
> in
> > > FF3.
> >
> > > > I have also had inconsistent results with margins on the body element
> > > across
> > > > browsers.
> >
> > > > If you want the 10px space, try using padding:10px instead.
> >
> > > > JK
> >
> > > > -----Original Message-----
> > > > From: [email protected] [mailto:[EMAIL PROTECTED]
> On
> >
> > > > Behalf Of tallvanilla
> > > > Sent: Wednesday, November 05, 2008 10:34 PM
> > > > To: jQuery UI
> > > > Subject: [jquery-ui] SORTABLE: inconsistent drag behavior ( demo
> > included
> > > )
> >
> > > > This is making me nuts. I've set up a very simple sortable demo.
> > > > Sorting works fine, but as soon as you start dragging an element, the
> > > > dragged element jumps to an offset position. The offset varies (in
> > > > size and direction) from one browser to the next. I was able to test
> > > > it with the following:
> >
> > > > Windows
> > > > - IE 6 (about 3 pixels down, 3 pixels right)
> > > > - Firefox 2 (GOOD! no offset)
> > > > - Firefox 3 (about 10 pixels up, 10 pixels left)
> > > > - Opera (about 10 pixels up, 10 pixels left)
> >
> > > > Mac
> > > > - Firefox 2 (GOOD! no offset)
> > > > - Safari (GOOD! no offset)
> > > > - Camino (GOOD! no offset)
> >
> > > > Here's the demo:
> >
> > > >http://74.205.126.197/dragtest/
> >
> > > > Please SEE FOR YOURSELF and let me know if anyone can shed some light
> > > > on this. Or better yet, fix it! =o)
> >
> > > > JR
>
>
>
> >
>


-- 
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to