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:59:01 UTC
svn commit: r1538548 -
/myfaces/tobago/trunk/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:59:00 2013
New Revision: 1538548
URL: http://svn.apache.org/r1538548
Log:
TOBAGO-1339: IE8: Menu may trigger an resize event when the window is maximized
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js
Modified: myfaces/tobago/trunk/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/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js?rev=1538548&r1=1538547&r2=1538548&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js Mon Nov 4 10:59:00 2013
@@ -195,6 +195,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 TOBAGO-1339
+ }
} else {
// is sub menu
// fix menu position, when it is outside of the current page