/*!
- * OOUI v0.26.3
+ * OOUI v0.26.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2018-04-10T22:15:39Z
+ * Date: 2018-04-24T23:29:01Z
*/
( function ( OO ) {
if ( change ) {
if ( visible ) {
- this.bindKeyDownListener();
- this.bindKeyPressListener();
-
this.togglePositioning( !!this.$floatableContainer );
this.toggleClipping( true );
+ this.bindKeyDownListener();
+ this.bindKeyPressListener();
+
if ( this.isClippedVertically() || this.isFloatableOutOfView() ) {
// If opening the menu downwards causes it to be clipped, flip it to open upwards instead
belowHeight = this.$element.height();