Jump to content

Recommended Posts

Posted

Not sure if it's a jquery ui sortable problem... when I drag (template fields for example, or all others using jqui sortable) on a page that is scrolled down, the selected item shows up on complete wrong y coordinate - like scrolltop offset is missing... not sure how to fix that, but it breakes the usability.

Posted

I cannot duplicate this (but I am not sure if I am trying to do it right - I scroll down the page and drag and drop field items on template editing...?). Does it occur in default admin or in customized only?

Posted

Ups, you're right it's because I changed the heights of the sortable items, did this some time ago while playing around with the admin css. How to prevent that? Any idea?

Posted

Not sure that I understand the problem well enough to suggest a solution here. I wouldn't think the height would matter. Though it's easy to get lost for a day trying to debug jQuery UI sortables. :)

Posted

Not sure if these random thoughts are any help, but at least on pagelist it creates .PageListSortPlaceholder which need to be exact same height than other sortable items, otherwise it will create "jump effect". But I believe that those "2D" sortables like AsmSelect don't create that element (or it is set to 0 height). Maybe you now give it some height or padding and it adds that offset or something?

Posted

Thanks Ryan for asking. I changed the padding of the sortable item div's to get mor spacing.. also on page list tree, now the position of the item when draging around is like 100px above mouse but only if page is scrolled down. I remember having similar problems working with sortables. I think it has to do with the way css is set on those and to what jquery ui sortable settings are set.

Posted

Ah, it might be that you cannot have any padding on .ui-sortable (or whatever is the direct container for sortables).

Posted

Sorted it out, I added a overflow-y:scroll to the body, for the scroll area to show up always, to avoid a jumping layout when a scrollbar is added. This currupts the sortable position... oh dear

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...