aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/oojs-ui/oojs-ui.js
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2014-07-30 12:38:46 -0700
committerJames D. Forrester <jforrester@wikimedia.org>2014-07-30 12:38:59 -0700
commit056cfae3131ab3beee4310b809aa3422aa1cf052 (patch)
tree845e1a26aa80a9d4453e82b2e2d0dbda69dccae1 /resources/lib/oojs-ui/oojs-ui.js
parent7c35170ede7019e72eee6a1788de493b8251c100 (diff)
downloadmediawikicore-056cfae3131ab3beee4310b809aa3422aa1cf052.tar.gz
mediawikicore-056cfae3131ab3beee4310b809aa3422aa1cf052.zip
Update OOjs UI to v0.1.0-pre (3d8475c0b3)
New changes: feba6af Remove unused CSS classes 58af913 Remove direction style attribute 7463080 Restyle agora theme for mobile after window refactor 5708bdf Make scrolling in PanelLayout smoother on iOS 96b89c2 demos: Add right-aligned menu in toolbar demo Change-Id: If38bbe6a7bc6c1452d2c56397344a3b75f5e46d5
Diffstat (limited to 'resources/lib/oojs-ui/oojs-ui.js')
-rw-r--r--resources/lib/oojs-ui/oojs-ui.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js
index 1c2dfc963f5a..baf8c9155204 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 (e9cf571db2)
+ * OOjs UI v0.1.0-pre (3d8475c0b3)
* 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-07-28T21:48:00Z
+ * Date: 2014-07-30T19:38:45Z
*/
( function ( OO ) {
@@ -1292,10 +1292,13 @@ OO.ui.Frame.prototype.load = function () {
// Initialize contents
doc.open();
+ // The following classes can be used here:
+ // oo-ui-ltr
+ // oo-ui-rtl
doc.write(
'<!doctype html>' +
'<html>' +
- '<body class="oo-ui-frame-content oo-ui-' + this.dir + '" style="direction:' + this.dir + ';" dir="' + this.dir + '">' +
+ '<body class="oo-ui-frame-content oo-ui-' + this.dir + '" dir="' + this.dir + '">' +
'</body>' +
'</html>'
);
@@ -6095,6 +6098,11 @@ OO.ui.FieldLayout.prototype.setAlignment = function ( value ) {
this.$element.removeClass( 'oo-ui-fieldLayout-align-' + this.align );
}
this.align = value;
+ // The following classes can be used here:
+ // oo-ui-fieldLayout-align-left
+ // oo-ui-fieldLayout-align-right
+ // oo-ui-fieldLayout-align-top
+ // oo-ui-fieldLayout-align-inline
this.$element.addClass( 'oo-ui-fieldLayout-align-' + this.align );
}