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 2013/11/04 11:57:18 UTC

svn commit: r1538547 - /myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js

Author: lofwyr
Date: Mon Nov  4 10:57:18 2013
New Revision: 1538547

URL: http://svn.apache.org/r1538547
Log:
TOBAGO-1339: IE8: Menu may trigger an resize event when the window is maximized

Modified:
    myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js?rev=1538547&r1=1538546&r2=1538547&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js Mon Nov  4 10:57:18 2013
@@ -144,6 +144,9 @@ Tobago.Menu.open = function(event) {
       // fix menu position, when it is outside of the current page
       left = Math.max(0, Math.min(left, page.outerWidth() - sub.outerWidth()));
       top = Math.max(0, Math.min(top, page.outerHeight() - sub.outerHeight()));
+      if (Tobago.browser.isMsie678) {
+        left = Math.max(0, left - 1); // XXX occurs when the browser window is maximized on the desktop
+      }
     } else {
       // is sub menu
       // fix menu position, when it is outside of the current page