Fixed hover text position flash change.

This commit is contained in:
WrinklyNinja
2014-08-26 14:31:12 +01:00
parent a7fc173b9b
commit 178ed24db0
+2 -2
View File
@@ -1057,6 +1057,8 @@ function showHoverText(evt) {
hoverText.setAttribute('data-target', evt.target.id);
var rect = evt.target.getBoundingClientRect();
hoverText.style.left = (rect.left + evt.target.offsetWidth/2) + 'px';
hoverText.style.top = (rect.bottom + 10) + 'px';
var dialog = getDialogParent(evt.target);
if (dialog) {
@@ -1064,8 +1066,6 @@ function showHoverText(evt) {
} else {
document.body.appendChild(hoverText);
}
hoverText.style.left = (rect.left + evt.target.offsetWidth/2) + 'px';
hoverText.style.top = (rect.bottom + 10) + 'px';
}
function hideHoverText(evt) {
var hoverText = document.getElementById('hoverText');