New changes:
91a7fab build: Bump miscellaneous devDependencies to latest
18c32c5 Localisation updates from https://translatewiki.net.
283e2a1 When updating the ideal size while not clipping, set that size
6c862e8 Update width of TextInputMenuWidget before fitting labels, not after
Change-Id: If825e0ec0e294b2569c98b5340be436ba896eceb
"@metadata": {
"authors": [
"Vacio",
- "Xelgen"
+ "Xelgen",
+ "Դավիթ Սարոյան"
]
},
- "ooui-dialog-action-close": "Փակել",
"ooui-outline-control-move-down": "Իջեցնել կետը",
"ooui-outline-control-move-up": "Բարձրացնել կետը",
"ooui-outline-control-remove": "Հեռացնել տարրը",
- "ooui-toolbar-more": "Ավելին"
+ "ooui-toolbar-more": "Ավելին",
+ "ooui-dialog-message-accept": "Լավ",
+ "ooui-dialog-message-reject": "Չեղարկել",
+ "ooui-dialog-process-error": "Ինչ-որ սխալ է տեղի ունեցել",
+ "ooui-dialog-process-dismiss": "Փակել",
+ "ooui-dialog-process-retry": "Կրկին փորձել"
}
/*!
- * OOjs UI v0.1.0-pre (49b64bdba7)
+ * OOjs UI v0.1.0-pre (24ac83a472)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2014-09-15T22:18:37Z
+ * Date: 2014-09-17T18:23:50Z
*/
/*
* Blank theme mixins.
/*!
- * OOjs UI v0.1.0-pre (49b64bdba7)
+ * OOjs UI v0.1.0-pre (24ac83a472)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2014-09-15T22:18:37Z
+ * Date: 2014-09-17T18:23:50Z
*/
/*
* Blank theme mixins.
/*!
- * OOjs UI v0.1.0-pre (49b64bdba7)
+ * OOjs UI v0.1.0-pre (24ac83a472)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2014-09-15T22:18:37Z
+ * Date: 2014-09-17T18:23:50Z
*/
( function ( OO ) {
};
/**
- * Set the ideal size.
+ * Set the ideal size. These are the dimensions the element will have when it's not being clipped.
*
* @param {number|string} [width] Width as a number of pixels or CSS string with unit suffix
* @param {number|string} [height] Height as a number of pixels or CSS string with unit suffix
OO.ui.ClippableElement.prototype.setIdealSize = function ( width, height ) {
this.idealWidth = width;
this.idealHeight = height;
+
+ if ( !this.clipping ) {
+ // Update dimensions
+ this.$clippable.css( { width: width, height: height } );
+ }
+ // While clipping, idealWidth and idealHeight are not considered
};
/**
var change = visible !== this.isVisible();
- // Parent method
- OO.ui.TextInputMenuWidget.super.prototype.toggle.call( this, visible );
-
if ( change ) {
- if ( this.isVisible() ) {
+ if ( visible ) {
this.position();
this.$( this.getElementWindow() ).on( 'resize', this.onWindowResizeHandler );
} else {
this.$( this.getElementWindow() ).off( 'resize', this.onWindowResizeHandler );
}
}
- return this;
+
+ // Parent method
+ return OO.ui.TextInputMenuWidget.super.prototype.toggle.call( this, visible );
};
/**
/*!
- * OOjs UI v0.1.0-pre (49b64bdba7)
+ * OOjs UI v0.1.0-pre (24ac83a472)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2014-09-15T22:18:37Z
+ * Date: 2014-09-17T18:23:50Z
*/
/*
* Blank theme mixins.