aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-16 01:03:16 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-16 01:03:16 +0000
commitb624f3bd6e4ddefa08ab9bd002d4504136fa8a4f (patch)
treeb004b7e7a36cd6832b958049f70835ba96c728a2
parent9cd4be689005f6eec063222b7c6ec7ec0e027a22 (diff)
downloadelgg-b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f.tar.gz
elgg-b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f.tar.bz2
center tagging instructions
-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",