summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-08-07 07:18:30 +0200
committerByron Jones <glob@mozilla.com>2014-08-07 07:18:30 +0200
commitfc9e97d8241600a264b1eed5aedc75c2a978ca7d (patch)
treef0dccb557fdf3b4030067cd63f1234c56aebc79f /js
parentc57791dc825c0393c27b3ca3656d69f7253b86b7 (diff)
downloadbugzilla-fc9e97d8241600a264b1eed5aedc75c2a978ca7d.tar.gz
bugzilla-fc9e97d8241600a264b1eed5aedc75c2a978ca7d.tar.xz
add due_date to bmo product, fix calendar position with mozilla skin
Diffstat (limited to 'js')
-rw-r--r--js/util.js7
1 files changed, 5 insertions, 2 deletions
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;
}
/**