/*!
- * OOjs UI v0.22.1
+ * OOjs UI v0.22.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2017 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2017-05-31T19:07:36Z
+ * Date: 2017-08-01T23:45:14Z
*/
( function ( OO ) {
}
this.$element
.addClass( 'oo-ui-draggableGroupElement' )
- .attr( 'role', 'listbox' )
.append( this.$status )
.toggleClass( 'oo-ui-draggableGroupElement-horizontal', this.orientation === 'horizontal' );
};
* @chainable
*/
OO.ui.BookletLayout.prototype.toggleOutline = function ( show ) {
+ var booklet = this;
+
if ( this.outlined ) {
show = show === undefined ? !this.outlineVisible : !!show;
this.outlineVisible = show;
this.toggleMenu( show );
+ if ( show && this.editable ) {
+ // HACK: When the sidebar stops animating, kill dumb scrollbars (T161798). Only necessary when
+ // outline controls are present, The delay matches transition on `.oo-ui-menuLayout-menu`.
+ setTimeout( function () {
+ OO.ui.Element.static.reconsiderScrollbars( booklet.outlinePanel.$element[ 0 ] );
+ }, 200 );
+ }
}
return this;
} );
this.removeButton = new OO.ui.ButtonWidget( {
framed: false,
- icon: 'remove',
+ icon: 'trash',
title: OO.ui.msg( 'ooui-outline-control-remove' )
} );
this.abilities = { move: true, remove: true };
// Events
this.closeButton = new OO.ui.ButtonWidget( {
framed: false,
- indicator: 'clear',
+ icon: 'close',
tabIndex: -1
} ).on( 'click', this.onCloseClick.bind( this ) );
this.closeButton = new OO.ui.ButtonWidget( {
framed: false,
- indicator: 'clear',
+ icon: 'close',
tabIndex: -1
} );
this.closeButton.setDisabled( this.isDisabled() );
OO.ui.TagMultiselectWidget.prototype.updateInputSize = function () {
var $lastItem, direction, contentWidth, currentWidth, bestWidth;
if ( this.inputPosition === 'inline' && !this.isDisabled() ) {
+ if ( this.input.$input[ 0 ].scrollWidth === 0 ) {
+ // Input appears to be attached but not visible.
+ // Don't attempt to adjust its size, because our measurements
+ // are going to fail anyway.
+ return;
+ }
this.input.$input.css( 'width', '1em' );
$lastItem = this.$group.children().last();
direction = OO.ui.Element.static.getDir( this.$handle );