X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=resources%2Flib%2Foojs-ui%2Foojs-ui-toolbars.js;h=1574f6c452a4e4fecee8e91fff24cdad2d8e9802;hb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;hp=c219770775379ff63791cf46dafa2f386fb01e7c;hpb=434ff86050115d4e1e3d61a23754815ebd7aeac6;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/lib/oojs-ui/oojs-ui-toolbars.js b/resources/lib/oojs-ui/oojs-ui-toolbars.js index c219770775..1574f6c452 100644 --- a/resources/lib/oojs-ui/oojs-ui-toolbars.js +++ b/resources/lib/oojs-ui/oojs-ui-toolbars.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.5 * 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-02-08T00:38:31Z + * Date: 2017-03-07T22:57:01Z */ ( function ( OO ) { @@ -793,10 +793,10 @@ OO.ui.Tool.prototype.setActive = function ( state ) { this.active = !!state; if ( this.active ) { this.$element.addClass( 'oo-ui-tool-active' ); - this.setFlags( 'progressive' ); + this.setFlags( { progressive: true } ); } else { this.$element.removeClass( 'oo-ui-tool-active' ); - this.clearFlags(); + this.setFlags( { progressive: false } ); } }; @@ -1469,6 +1469,7 @@ OO.ui.PopupTool = function OoUiPopupTool( toolGroup, config ) { OO.ui.mixin.PopupElement.call( this, config ); // Initialization + this.popup.setPosition( toolGroup.getToolbar().position === 'bottom' ? 'above' : 'below' ); this.$element .addClass( 'oo-ui-popupTool' ) .append( this.popup.$element ); @@ -2194,6 +2195,9 @@ OO.ui.ListToolGroup.prototype.updateCollapsibleState = function () { for ( i = 0, len = this.collapsibleTools.length; i < len; i++ ) { this.collapsibleTools[ i ].toggle( this.expanded ); } + + // Re-evaluate clipping, because our height has changed + this.clip(); }; /**