From 776cfbc5c72aded4d41bd8030d8a2d5efb0ebe0b Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Mon, 5 Dec 2011 03:48:54 +0900 Subject: [PATCH] full tooltip was shown on wrong position if the window is not in the primary display (part 2) --- modules/fullTooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fullTooltip.js b/modules/fullTooltip.js index d0d8d512..6ea175e2 100644 --- a/modules/fullTooltip.js +++ b/modules/fullTooltip.js @@ -205,9 +205,9 @@ FullTooltipManager.prototype = { style.maxHeight = screenHeight.value+'px'; style.minWidth = 0; style.minHeight = 0; - if (currentX + currentW >= screenWidth.value) + if (currentX + currentW + screenLeft.value >= screenWidth.value) style.marginLeft = (Math.max(screenLeft.value, screenWidth.value - currentW) - this.window.screenX)+'px'; - if (currentY + currentH >= screenHeight.value) + if (currentY + currentH + screenTop.value >= screenHeight.value) style.marginTop = (Math.max(screenTop.value, screenHeight.value - currentH) - this.window.screenY)+'px'; },