Customize: Prevent wide widgets from being displayed as wide when Customizer is displayed in mobile breakpoint.

Fixes #41624.


git-svn-id: https://develop.svn.wordpress.org/trunk@41247 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-08-13 05:54:07 +00:00
parent cc8cbb38c9
commit a29068cb00

View File

@ -593,7 +593,7 @@
var self = this, $widgetInside, $widgetForm, $customizeSidebar,
$themeControlsContainer, positionWidget;
if ( ! this.params.is_wide ) {
if ( ! this.params.is_wide || $( window ).width() <= 640 /* max-width breakpoint in customize-controls.css */ ) {
return;
}