From fc9e97d8241600a264b1eed5aedc75c2a978ca7d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 7 Aug 2014 13:18:30 +0800 Subject: add due_date to bmo product, fix calendar position with mozilla skin --- js/util.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/util.js b/js/util.js index cc4a87081..78b64b516 100644 --- a/js/util.js +++ b/js/util.js @@ -37,7 +37,8 @@ function bz_findPosX(obj) if (obj.offsetParent) { while (obj) { - curleft += obj.offsetLeft; + if (getComputedStyle(obj).position != 'relative') + curleft += obj.offsetLeft; obj = obj.offsetParent; } } @@ -61,7 +62,8 @@ function bz_findPosY(obj) if (obj.offsetParent) { while (obj) { - curtop += obj.offsetTop; + if (getComputedStyle(obj).position != 'relative') + curtop += obj.offsetTop; obj = obj.offsetParent; } } @@ -132,6 +134,7 @@ function bz_overlayBelow(item, parent) { item.style.position = 'absolute'; item.style.left = elemX + "px"; item.style.top = elemY + elemH + 1 + "px"; + item.style.zIndex = 999; } /** -- cgit v1.2.3-24-g4f1b