www

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

commit 66b56d9ac96b64bf2d2240cc659a2f9d331410b8
parent 583f4a60dc300f26721cc0099d718b22311bf0c0
Author: zorkow <volker.sorge@gmail.com>
Date:   Fri, 28 Aug 2015 22:52:45 +0100

Moves posting code for keyboard triggered menus.

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

diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js @@ -301,13 +301,13 @@ x = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = event.clientY + document.body.scrollTop + document.documentElement.scrollTop; } - var node = MENU.CurrentNode() || event.target; - if (!x && !y && node) { - var rect = node.getBoundingClientRect(); - x = rect.right; - y = rect.bottom; - } if (!parent) { + var node = MENU.CurrentNode() || event.target; + if (!x && !y && node) { + var rect = node.getBoundingClientRect(); + x = rect.right; + y = rect.bottom; + } if (x + menu.offsetWidth > document.body.offsetWidth - this.margin) {x = document.body.offsetWidth - menu.offsetWidth - this.margin} if (MENU.isMobile) {x = Math.max(5,x-Math.floor(menu.offsetWidth/2)); y -= 20}