From ce773cbc6c64f0ec54758b73691f4799f8cfe1df Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 2 Mar 2016 18:36:26 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index e66dab5fe6..790283718a 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -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 ); }; }