Customize: Remove gap above section contained in panel when initially focusing on control.

Props mattwiebe.
Fixes #36050.


git-svn-id: https://develop.svn.wordpress.org/trunk@36805 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter
2016-03-02 18:36:26 +00:00
parent fd8ed4e673
commit ce773cbc6c

View File

@@ -685,7 +685,7 @@
// Fix the height after browser resize.
$( window ).on( 'resize.customizer-section', _.debounce( resizeContentHeight, 100 ) );
section._recalculateTopMargin();
setTimeout( _.bind( section._recalculateTopMargin, section ), 0 );
};
}