You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2014/04/24 16:10:32 UTC

svn commit: r1589735 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js

Author: lofwyr
Date: Thu Apr 24 14:10:31 2014
New Revision: 1589735

URL: http://svn.apache.org/r1589735
Log:
TOBAGO-1388: Wandering popup

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js?rev=1589735&r1=1589734&r2=1589735&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js Thu Apr 24 14:10:31 2014
@@ -99,8 +99,8 @@ Tobago.Utils.keepElementInVisibleArea = 
   elements.each(function() {
     var element = jQuery(this);
     var page = jQuery(".tobago-page-content:first");
-    var left = element.offset().left;
-    var top = element.offset().top;
+    var left = element.position().left;
+    var top = element.position().top;
     // fix menu position, when it is outside of the current page
     left = Math.max(0, Math.min(left, page.outerWidth() - element.outerWidth()));
     top = Math.max(0, Math.min(top, page.outerHeight() - element.outerHeight()));