Prtksxna has uploaded a new change for review.
https://gerrit.wikimedia.org/r/115187
Change subject: [WIP] Flip the starting point of the popup if its on the right
side of the screen
......................................................................
[WIP] Flip the starting point of the popup if its on the right side of the
screen
Change-Id: I7a3fea220d051e0d70fcbf0be3d0557ee24c5da2
---
M resources/ext.popups.core.js
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups
refs/changes/87/115187/1
diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js
index 4e912be..2d82c52 100644
--- a/resources/ext.popups.core.js
+++ b/resources/ext.popups.core.js
@@ -169,6 +169,11 @@
bar.tall = false;
}
+ if ( offsetLeft > ( $( window ).width() / 2 ) ) {
+ offsetLeft = offsetLeft + $el.width();
+ offsetLeft -= ( !bar.tall ) ? 300 : 450;
+ }
+
$box
.children()
.detach()
--
To view, visit https://gerrit.wikimedia.org/r/115187
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a3fea220d051e0d70fcbf0be3d0557ee24c5da2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits