Fix caction menu button from having a width that's 1px too small
Bug: T294883 Change-Id: Ibda07f60d8e94305d36a6bdc2c095b1a93dd6cba
This commit is contained in:
parent
42fec59f54
commit
dca94de026
|
@ -35,7 +35,7 @@ function init() {
|
|||
// Then animate from the 1px to the expanded width.
|
||||
expandedWidth = $cactions.width();
|
||||
// eslint-disable-next-line no-jquery/no-animate
|
||||
$cactions.find( 'h3' )
|
||||
$cactions
|
||||
.css( 'width', '1px' )
|
||||
.animate( { width: expandedWidth }, 'normal' );
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ function init() {
|
|||
// If we're removing the last child node right now, hide the dropdown
|
||||
if ( $cactions.find( 'li' ).length === 1 ) {
|
||||
// eslint-disable-next-line no-jquery/no-animate
|
||||
$cactions.find( 'h3' ).animate( { width: '1px' }, 'normal', function () {
|
||||
$cactions.animate( { width: '1px' }, 'normal', function () {
|
||||
$( this ).attr( 'style', '' );
|
||||
mw.util.hidePortlet( cactionsId );
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue