can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r18458: LJSUP-7759: Native sharing

Committer: dpetrov
LJSUP-7759: Native sharing
U   trunk/htdocs/js/share.js
Modified: trunk/htdocs/js/share.js
===================================================================
--- trunk/htdocs/js/share.js	2011-03-03 06:52:33 UTC (rev 18457)
+++ trunk/htdocs/js/share.js	2011-03-03 07:43:52 UTC (rev 18458)
@@ -215,15 +215,15 @@
 		var lowerSpace = $( window ).height() - upperSpace - linkH;
 		var domH = dom.height(), domW = dom.width();
 
-		var linkTop = linkPos.top, linkLeft = linkPos.left;
+		var linkTop = Math.floor( linkPos.top ), linkLeft = Math.floor( linkPos.left );
 
 
 		//we decide whether the popup should be shown under or above the link
 		if( lowerSpace < domH && upperSpace > domH ) {
-			linkTop -= domH + 5;
+			linkTop -= domH + 9;
 			arrPos += "b";
 		} else {
-			linkTop += linkH + 5;
+			linkTop += linkH + 9;
 			arrPos += "t";
 		}
 
@@ -234,7 +234,7 @@
 			arrPos += "r";
 		} else {
 			arrPos += "l";
-			linkLeft -= 30;
+			linkLeft -= 24;
 		}
 
 		arrow.removeClass().addClass( arrow_opts.className ).addClass( arrow_opts.position[ arrPos ] ); 

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments