From: <car...@us...> - 2011-05-18 16:35:32
|
Revision: 3461 http://openutils.svn.sourceforge.net/openutils/?rev=3461&view=rev Author: carlocolombo Date: 2011-05-18 16:35:25 +0000 (Wed, 18 May 2011) Log Message: ----------- appended edit icon to container span to avoid misalignment between icon and text in case of dom insertion after domready Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/resources/META-INF/tags/msg/msgs-global.tag Modified: trunk/openutils-mgnlmessages/src/main/resources/META-INF/tags/msg/msgs-global.tag =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/META-INF/tags/msg/msgs-global.tag 2011-05-16 15:50:01 UTC (rev 3460) +++ trunk/openutils-mgnlmessages/src/main/resources/META-INF/tags/msg/msgs-global.tag 2011-05-18 16:35:25 UTC (rev 3461) @@ -35,12 +35,8 @@ var editLink = $('<a href="#" title="edit" \ style="position:absolute;background:#000 url(${appCtx}/.resources/messages/icons/edit.png) center \ center no-repeat;border-radius:4px;-moz-border-radius:4px;\ - -webkit-border-radius:4px;width:24px;height:24px;z-index:1000"></a>'); - editLink.css({ - top: container.offset().top + (container.height() - 24) / 2, - left: container.offset().left - 24 + parseInt(container.css('margin-left')) + parseInt(container.css('padding-left')) - }); - $("body").append(editLink); + -webkit-border-radius:4px;width:24px;height:24px;z-index:1000; top:-5px; left:-24px;"></a>'); + container.append(editLink).css('position','relative'); editLink.fadeTo('slow',0.3); editLink.mouseenter(function(){ editLink.fadeTo('slow',1.0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |