[wp-trac] [WordPress Trac] #38948: More difficult to create submenus in customizer

WordPress Trac noreply at wordpress.org
Tue Nov 29 13:57:29 UTC 2016


#38948: More difficult to create submenus in customizer
-----------------------------+-------------------------
 Reporter:  adamsilverstein  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.7
Component:  Customize        |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  javascript
-----------------------------+-------------------------

Comment (by adamsilverstein):

 @delawski Nice work here tracking down a solution! In my initial testing
 the new code didn’t completely fix the positioning, I think the code
 potentially fires while the element is still animating, that is sliding in
 from the right:

 [[Image(https://cl.ly/182R0t2T2b2a/Screen%20Recording%202016-11-29%20at%2008.53%20AM.gif)]]

 I updated the patch by introducing a slight delay before calculating the
 left edge and this resolved the issue for me. Ideally, I'd like to have
 the calculation triggered by the end of the animating panel itself, it
 looks like `expandedSection` is firing as the animation starts. I haven't
 looked into where the animation happens to see how to control the timing.

 After my updated patch drag and drop works as expected:

 [[Image(https://cl.ly/1i1M15310h1i/Screen%20Recording%202016-11-29%20at%2008.51%20AM.gif)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38948#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list