Bartosz Dziewoński has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/398387 )
Change subject: OOjs UI: Backport Iad4a2fd1bd985b4924e5ef1f822e1ea81ce0a988
......................................................................
OOjs UI: Backport Iad4a2fd1bd985b4924e5ef1f822e1ea81ce0a988
Bug: T182359
Bug: T182395
Change-Id: I764a96780e418830e5c92ec57c50f549951ff47f
(cherry picked from commit ec9e690f171a29f69052102bf4d6a86d77d628c8)
---
M resources/lib/oojs-ui/oojs-ui-core.js
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/87/398387/1
diff --git a/resources/lib/oojs-ui/oojs-ui-core.js
b/resources/lib/oojs-ui/oojs-ui-core.js
index e0d165f..b3a9012 100644
--- a/resources/lib/oojs-ui/oojs-ui-core.js
+++ b/resources/lib/oojs-ui/oojs-ui-core.js
@@ -4832,7 +4832,7 @@
* @return {string} 'left' or 'right'
*/
OO.ui.mixin.ClippableElement.prototype.getHorizontalAnchorEdge = function () {
- if ( this.computePosition && this.computePosition().right !== '' ) {
+ if ( this.computePosition && this.positioning &&
this.computePosition().right !== '' ) {
return 'right';
}
return 'left';
@@ -4854,7 +4854,7 @@
* @return {string} 'top' or 'bottom'
*/
OO.ui.mixin.ClippableElement.prototype.getVerticalAnchorEdge = function () {
- if ( this.computePosition && this.computePosition().bottom !== '' ) {
+ if ( this.computePosition && this.positioning &&
this.computePosition().bottom !== '' ) {
return 'bottom';
}
return 'top';
--
To view, visit https://gerrit.wikimedia.org/r/398387
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I764a96780e418830e5c92ec57c50f549951ff47f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.31.0-wmf.12
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits