www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0922aa2ebc7403e397340f00c364ec17e7dbf778
parent 0e1a33263ff4d95e45bf6bc0fe340a659a4138fb
Author: zorkow <volker.sorge@gmail.com>
Date:   Tue,  1 Sep 2015 21:27:25 +0100

Moves keyboard menu to centroid.

Diffstat:
Munpacked/extensions/MathMenu.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js @@ -306,8 +306,8 @@ var node = MENU.CurrentNode() || event.target; if (!x && !y && node) { var rect = node.getBoundingClientRect(); - x = rect.right; - y = rect.bottom; + x = (rect.right + rect.left) / 2; + y = (rect.bottom + rect.top) / 2; } if (x + menu.offsetWidth > document.body.offsetWidth - this.margin) {x = document.body.offsetWidth - menu.offsetWidth - this.margin}