Soma Posted September 18, 2011 Share Posted September 18, 2011 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. Link to comment Share on other sites More sharing options...
apeisa Posted September 18, 2011 Share Posted September 18, 2011 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? Link to comment Share on other sites More sharing options...
ryan Posted September 18, 2011 Share Posted September 18, 2011 Can't seem to duplicate here either. Need more info (or screencast?) on how to reproduce it. Link to comment Share on other sites More sharing options...
Soma Posted September 18, 2011 Author Share Posted September 18, 2011 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? Link to comment Share on other sites More sharing options...
ryan Posted September 18, 2011 Share Posted September 18, 2011 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. Link to comment Share on other sites More sharing options...
apeisa Posted September 18, 2011 Share Posted September 18, 2011 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? Link to comment Share on other sites More sharing options...
Soma Posted September 18, 2011 Author Share Posted September 18, 2011 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. Link to comment Share on other sites More sharing options...
apeisa Posted September 18, 2011 Share Posted September 18, 2011 Ah, it might be that you cannot have any padding on .ui-sortable (or whatever is the direct container for sortables). Link to comment Share on other sites More sharing options...
Soma Posted September 18, 2011 Author Share Posted September 18, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now