diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-05-16 01:03:16 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-05-16 01:03:16 +0000 |
commit | b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f (patch) | |
tree | b004b7e7a36cd6832b958049f70835ba96c728a2 /views/default | |
parent | 9cd4be689005f6eec063222b7c6ec7ec0e027a22 (diff) | |
download | elgg-b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f.tar.gz elgg-b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f.tar.bz2 |
center tagging instructions
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/js/tidypics.php | 4 |
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",
|