Skip to content

Node.js based forum software built for the modern web

fix tooltip positioning

barisusakli2064f20f94bc
diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.js
index 9ae1cb273e..764ec7cd0a 100644
--- a/public/src/client/topic/postTools.js
+++ b/public/src/client/topic/postTools.js
@@ -39,7 +39,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
function addVoteHandler() {
components.get('topic').on('mouseenter', '[data-pid] [component="post/vote-count"]', function() {
- loadDataAndCreateTooltip($(this));
+ loadDataAndCreateTooltip($(this).parent());
});
}