Skip to content

Commit

Permalink
Merge branch 'release/1.19.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Jul 9, 2022
2 parents 0465d4c + fb8a8bb commit 921b903
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ This theme makes use of the [SiteOrigin Settings Framework](https://github.com/s

== Changelog ==

= 1.19.6 - 09 July 2022 =
* WooCommerce: Improved variation drop-down sizing behavior.

= 1.19.5 - 02 July 2022 =
* WooCommerce: Resolved archive filter sorting issue.

Expand Down
8 changes: 5 additions & 3 deletions woocommerce/js/jquery.woocommerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ jQuery( function( $ ) {
.data( 'val', $o.attr( 'value' ) )
);

widest = Math.max( c.find( '.current' ).html( $o.html() ).width(), widest);
c.find( '.current' ).html( $o.html() );
widest = Math.max( c.find( '.current' ).width(), widest );

} );

c.find('.current').html( $$.find( ':selected' ).html() ).width( widest );

c.find( '.current' ).html( $$.find( ':selected' ).html() );
c.find( '.current' ).width( widest );

$$.hide();
}
Expand Down

0 comments on commit 921b903

Please sign in to comment.