fix #1614 Gutter tooltip not showing inside relative container

This commit is contained in:
nightwing 2013-09-21 14:55:53 +04:00
commit 58e1410adf

View file

@ -117,7 +117,8 @@ function GutterHandler(mouseHandler) {
tooltip.style.top = e.y + 15 + "px"; tooltip.style.top = e.y + 15 + "px";
} else { } else {
tooltip.style.top = ""; tooltip.style.top = "";
tooltip.style.bottom = rect.bottom - e.y + 5 + "px"; var innerHeight = window.innerHeight || document.documentElement.clientHeight;
tooltip.style.bottom = innerHeight - e.y + 5 + "px";
} }
} }