| @@ -194,12 +194,20 @@ | ||
| 194 | 194 | if ( !empty( $this->wrapperSize ) ) { |
| 195 | 195 | $sectionWidth = $this->wrapperSize->getResponsiveSizes( "width" ); |
| 196 | 196 | if ( ! $this->wrapperSize->hasNoResponsiveSize( $sectionWidth ) ) { |
| 197 | 197 | $args[ 'data-wrapper-width'] = implode( ',', $sectionWidth ); |
| 198 | + $args[ 'data-wrapper-width'] = str_replace( 'auto', '', $args[ 'data-wrapper-width'] ); | |
| 199 | + if ( $args[ 'data-wrapper-width'] == ',,' ) { | |
| 200 | + unset( $args[ 'data-wrapper-width'] ); | |
| 201 | + } | |
| 198 | 202 | } |
| 199 | 203 | $sectionHeight = $this->wrapperSize->getResponsiveSizes( "height" ); |
| 200 | 204 | if ( ! $this->wrapperSize->hasNoResponsiveSize( $sectionHeight ) ) { |
| 201 | 205 | $args['data-wrapper-height'] = implode( ',', $sectionHeight ); |
| 206 | + $args[ 'data-wrapper-height'] = str_replace( 'auto', '', $args[ 'data-wrapper-height'] ); | |
| 207 | + if ( $args[ 'data-wrapper-height'] == ',,' ) { | |
| 208 | + unset( $args[ 'data-wrapper-height'] ); | |
| 209 | + } | |
| 202 | 210 | } |
| 203 | 211 | } |
| 204 | 212 | |
| 205 | 213 | if ( !empty( $this->options ) ) { |