[wp-trac] Re: [WordPress Trac] #8364: Dashboard Drag and Drop very glitchy

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 27 17:06:20 GMT 2008


#8364: Dashboard Drag and Drop very glitchy
--------------------------+-------------------------------------------------
 Reporter:  janeforshort  |        Owner:  anonymous
     Type:  defect        |       Status:  new      
 Priority:  normal        |    Milestone:  2.7      
Component:  General       |      Version:  2.7      
 Severity:  major         |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by dberebi):

 I've tried to fix this and spent some hours of work but with no succeed.
 So I'll just write here what I've already tried out.

 Firstly, I've never used jQuery's sortable interface, so I've searched for
 documentation and receive [http://interface.eyecon.ro/docs/sort this
 page], well, it's the wrong one. All the site under
 ''interface.eyecon.ro'' use a different javascript from what WP use.

 The correct one is the
 [http://docs.jquery.com/UI/Sortable/sortable#options Official jQuery docs]
 that somehow was really low in the search results.

 The file ''\wp-admin\js\postbox.js'' is the file that activate the
 sortable and pass all the arguments.[[BR]]
 I think the 'opacity' argument should be added to make the dragged element
 partially transparent.

 Inside the file ''\wp-admin\includes\dashboard.php'' you can find the
 definition of the function ''wp_dashboard'' which generate the page
 content, ''wp_dashboard'' call the function ''do_meta_boxes'' (defined in
 ''\wp-admin\includes\template.php'') twice (right+left), which generate
 each of widgets.

 Inside ''\wp-admin\js\postbox.js'' I've tried to play with the values of
 the 'tolerance' argument, tried all of them ("guess", "intersect",
 "tolerance", "pointer").

 Inside the function ''wp_dashboard'' I've changed classes and IDs to
 disable all the CSS defined by WP and tried everything I could think of
 (margins, width, positioning, floating, HTML tables without CSS and more),
 the widgets changed their behavior but not to the desired behavior.

 Even when I disabled (from the php source) one column and remove almost
 all of the CSS / HTML complexity, it's still was irritating.

 '''I think the problem is with the relatively complex WP admin interface,
 the only working demo of the sortable technique was
 [http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.sortable.html this
 page] that is really really simple.'''

 Can anybody find a working example of jQuery's sortable with the same
 complexity of WP?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8364#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list