/*!
- * OOjs UI v0.22.2
+ * 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-06-28T19:51:59Z
+ * Date: 2017-08-03T19:36:51Z
*/
( function ( OO ) {
}
this.$element
.addClass( 'oo-ui-draggableGroupElement' )
- .attr( 'role', 'listbox' )
.append( this.$status )
.toggleClass( 'oo-ui-draggableGroupElement-horizontal', this.orientation === 'horizontal' );
};
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 );