From: Marcel Werk Date: Wed, 2 Nov 2011 14:11:25 +0000 (+0100) Subject: Fixed positioning of balloon tooltips X-Git-Tag: 2.0.0_Beta_1~1636 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e440c147ff36aa2ffb53b67ae3ed51ad4cad2b18;p=GitHub%2FWoltLab%2FWCF.git Fixed positioning of balloon tooltips --- 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" }); }