Index: trunk/extensions/ContributorsAddon/ContributorsAddon.js |
— | — | @@ -28,6 +28,9 @@ |
29 | 29 | var contributorsDiv = document.getElementById('contributorsDiv'); |
30 | 30 | contributorsDiv.className = 'contributorsDivShow pBody'; |
31 | 31 | var arrCoords = findPos(document.getElementById('t-contributors')); |
| 32 | + var arrFooterPos = findPos(document.getElementById('footer')); |
| 33 | + if (arrCoords[1] + contributorsDiv.clientHeight > arrFooterPos[1]) |
| 34 | + arrCoords[1] = arrFooterPos[1] - contributorsDiv.clientHeight; |
32 | 35 | contributorsDiv.style.top = (arrCoords[1]-5) + 'px'; |
33 | 36 | contributorsDiv.style.left = (arrCoords[0]+40) + 'px'; |
34 | 37 | } |