Merge "registration: Only allow one extension to set a specific config setting"
[lhc/web/wiklou.git] / resources / lib / oojs-ui / oojs-ui-toolbars.js
index 6dc50d4..3ae00b5 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.23.2
+ * OOjs UI v0.24.0
  * 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-09-26T20:18:42Z
+ * Date: 2017-10-17T23:18:51Z
  */
 ( function ( OO ) {
 
@@ -1949,6 +1949,7 @@ OO.ui.PopupToolGroup.prototype.setActive = function ( value ) {
                        this.$clippable.css( 'left', '' );
                        // Try anchoring the popup to the left first
                        this.$element.addClass( 'oo-ui-popupToolGroup-active oo-ui-popupToolGroup-left' );
+                       this.setFlags( { progressive: true } );
                        this.toggleClipping( true );
                        if ( this.isClippedHorizontally() ) {
                                // Anchoring to the left caused the popup to clip, so anchor it to the right instead
@@ -1961,7 +1962,9 @@ OO.ui.PopupToolGroup.prototype.setActive = function ( value ) {
                        if ( this.isClippedHorizontally() ) {
                                // Anchoring to the right also caused the popup to clip, so just make it fill the container
                                containerWidth = this.$clippableScrollableContainer.width();
-                               containerLeft = this.$clippableScrollableContainer.offset().left;
+                               containerLeft = this.$clippableScrollableContainer[ 0 ] === document.documentElement ?
+                                       0 :
+                                       this.$clippableScrollableContainer.offset().left;
 
                                this.toggleClipping( false );
                                this.$element.removeClass( 'oo-ui-popupToolGroup-right' );
@@ -1977,6 +1980,7 @@ OO.ui.PopupToolGroup.prototype.setActive = function ( value ) {
                        this.$element.removeClass(
                                'oo-ui-popupToolGroup-active oo-ui-popupToolGroup-left  oo-ui-popupToolGroup-right'
                        );
+                       this.setFlags( { progressive: false } );
                        this.toggleClipping( false );
                }
        }