From b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 16 May 2009 01:03:16 +0000 Subject: center tagging instructions --- views/default/js/tidypics.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/default/js/tidypics.php') 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", -- cgit v1.2.3