aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/tidypics.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/tidypics.php')
-rw-r--r--views/default/js/tidypics.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/js/tidypics.php b/views/default/js/tidypics.php
index 31ccc57af..323c2bf57 100644
--- a/views/default/js/tidypics.php
+++ b/views/default/js/tidypics.php
@@ -211,11 +211,13 @@
{
offsetY = -60;
+ divWidth = $('#tagging_instructions').width();
imgOffset = $('#tidypics_image').offset();
imgWidth = $('#tidypics_image').width();
+ offsetX = parseInt((imgWidth - divWidth)/2);
_top = imgOffset.top + offsetY;
- _left = imgOffset.left;
+ _left = imgOffset.left + offsetX;
$('#tagging_instructions').show().css({
"top": _top + "px",