From cc8cbb38c9f8d80abbe82dce8cdf0f74bd50a124 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sun, 13 Aug 2017 05:41:34 +0000 Subject: [PATCH] Customize: Update selector to add `max-height`/`max-width` for wide widgets to account for JS-driven Text widget and Media widgets. Fixes #41623. git-svn-id: https://develop.svn.wordpress.org/trunk@41246 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/customize-widgets.js b/src/wp-admin/js/customize-widgets.js index df4c8d777b..ba9e3d1b43 100644 --- a/src/wp-admin/js/customize-widgets.js +++ b/src/wp-admin/js/customize-widgets.js @@ -602,7 +602,7 @@ $customizeSidebar = $( '.wp-full-overlay-sidebar-content:first' ); this.container.addClass( 'wide-widget-control' ); - this.container.find( '.widget-content:first' ).css( { + this.container.find( '.form:first' ).css( { 'max-width': this.params.width, 'min-height': this.params.height } );