[wp-trac] [WordPress Trac] #34344: Expanded section margin-top glitches when other section is deactivated

WordPress Trac noreply at wordpress.org
Sat Oct 17 22:48:36 UTC 2015


#34344: Expanded section margin-top glitches when other section is deactivated
--------------------------+----------------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Customize     |    Version:  4.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  javascript    |
--------------------------+----------------------------
 After having expanded a section, if you then deactivate another section,
 the `margin-top` for the expanded section causes the contents to go out of
 view. Additionally, deactivated section is incorrectly animated when it
 should just collapse instantly since it is not in view.

 To reproduce the problem in Twenty Fifteen, execute the following from the
 console:

 {{{#!js
 wp.customize.section('header_image').expand( { completeCallback:
 function() {
         _.delay( function(){ wp.customize.section('colors').active(false);
 }, 1000 );
 } } );
 }}}

 Video depicting the above behavior: https://cloudup.com/cP5JgMgkqFu

 Relates to #33567.

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


More information about the wp-trac mailing list