From f8e79c5bbcd4f6281aebe98c909acaf4c74cf901 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 17 Oct 2015 22:40:10 +0000 Subject: [PATCH] Customizer: Fix `margin-top` calculation for Themes section. Ensure that the Themes section calculates its `margin-top` as a panel, since the section behaves as one. Fixes regression caused by [35231]. See #33567. git-svn-id: https://develop.svn.wordpress.org/trunk@35251 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-controls.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index b1e7ba6653..e78d2c96c7 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -975,6 +975,16 @@ } }, + /** + * Recalculate the top margin. + * + * @since 4.4.0 + * @private + */ + _recalculateTopMargin: function() { + api.Panel.prototype._recalculateTopMargin.call( this ); + }, + /** * Render control's screenshot if the control comes into view. *