[wp-trac] [WordPress Trac] #32382: Drag and drop in admin screens not working correctly.

WordPress Trac noreply at wordpress.org
Wed May 13 22:12:29 UTC 2015


#32382: Drag and drop in admin screens not working correctly.
--------------------------------------------+-----------------------------
 Reporter:  eltobiano                       |      Owner:
     Type:  defect (bug)                    |     Status:  new
 Priority:  normal                          |  Milestone:  Awaiting Review
Component:  Administration                  |    Version:  4.2.2
 Severity:  normal                          |   Keywords:
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------------
 Whilst debugging an issue for one of our members on WPMU DEV, I found this
 glitch.
 The problem can be seen in ''Dashboard'' and ''Appearance->Widgets''
 screens.
 If there are too many admin notification messages on top -or any other
 element rendered on top-, the vertical dragging is limited -or even not
 possible-.

 Steps to reproduce:
 - Add admin notifications until you can see the problem.
 - The more space that notification messages takes on top, the more limited
 is the vertical dragging to the bottom.

 The cause of the issue is the argument 'containment' set to 'document' in
 the initialization of the sortable plugin.

 Changing this:

 {{{
 containment: 'document'
 }}}

 Into any of this variants:

 {{{
 containment: $('.wrap')[0]
 }}}
 {{{
 containment: '.wrap'
 }}}
 should fix the problem.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32382>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list