From e440c147ff36aa2ffb53b67ae3ed51ad4cad2b18 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 2 Nov 2011 15:11:25 +0100 Subject: [PATCH] Fixed positioning of balloon tooltips --- wcfsetup/install/files/js/WCF.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 248f208bde..d4e4e454e3 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2708,10 +2708,10 @@ WCF.Effect.BalloonTooltip.prototype = { this._mouseEnterHandler(event); } - if ($(document).width() - event.pageX < this.tooltip.getDimensions().width) { + if (event.pageX + 10 + this.tooltip.getDimensions().width >= $(window).width()) { this.tooltip.css({ - top: (event.pageY) + "px", - right: ($(document).width() - event.pageX) + "px", + top: (event.pageY + 20) + "px", + right: ($(document).width() - event.pageX - 5) + "px", left: "auto" }); } -- 2.20.1