From fb6b45c463f4965c298a07466c09af7de65d9826 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 17 Sep 2014 11:23:53 -0700 Subject: [PATCH] Update OOjs UI to v0.1.0-pre (24ac83a472) 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 --- resources/lib/oojs-ui/i18n/hy.json | 11 ++++++++--- resources/lib/oojs-ui/oojs-ui-apex.css | 4 ++-- resources/lib/oojs-ui/oojs-ui-minerva.css | 4 ++-- resources/lib/oojs-ui/oojs-ui.js | 21 +++++++++++++-------- resources/lib/oojs-ui/oojs-ui.svg.css | 4 ++-- 5 files changed, 27 insertions(+), 17 deletions(-) diff --git a/resources/lib/oojs-ui/i18n/hy.json b/resources/lib/oojs-ui/i18n/hy.json index a6705d01ce..ebb286099d 100644 --- a/resources/lib/oojs-ui/i18n/hy.json +++ b/resources/lib/oojs-ui/i18n/hy.json @@ -2,12 +2,17 @@ "@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": "Կրկին փորձել" } diff --git a/resources/lib/oojs-ui/oojs-ui-apex.css b/resources/lib/oojs-ui/oojs-ui-apex.css index 53e46d6062..efda815cfa 100644 --- a/resources/lib/oojs-ui/oojs-ui-apex.css +++ b/resources/lib/oojs-ui/oojs-ui-apex.css @@ -1,12 +1,12 @@ /*! - * 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. diff --git a/resources/lib/oojs-ui/oojs-ui-minerva.css b/resources/lib/oojs-ui/oojs-ui-minerva.css index e81714288a..906df74d07 100644 --- a/resources/lib/oojs-ui/oojs-ui-minerva.css +++ b/resources/lib/oojs-ui/oojs-ui-minerva.css @@ -1,12 +1,12 @@ /*! - * 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. diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js index a3e2375e4a..0921aa963d 100644 --- a/resources/lib/oojs-ui/oojs-ui.js +++ b/resources/lib/oojs-ui/oojs-ui.js @@ -1,12 +1,12 @@ /*! - * 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 ) { @@ -4725,7 +4725,7 @@ OO.ui.ClippableElement.prototype.isClippedVertically = function () { }; /** - * 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 @@ -4733,6 +4733,12 @@ OO.ui.ClippableElement.prototype.isClippedVertically = function () { 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 }; /** @@ -11091,18 +11097,17 @@ OO.ui.TextInputMenuWidget.prototype.toggle = function ( visible ) { 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 ); }; /** diff --git a/resources/lib/oojs-ui/oojs-ui.svg.css b/resources/lib/oojs-ui/oojs-ui.svg.css index 913d5fdd81..65414271ba 100644 --- a/resources/lib/oojs-ui/oojs-ui.svg.css +++ b/resources/lib/oojs-ui/oojs-ui.svg.css @@ -1,12 +1,12 @@ /*! - * 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. -- 2.20.1