You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2007/04/21 16:44:46 UTC
svn commit: r531041 -
/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: weber
Date: Sat Apr 21 07:44:45 2007
New Revision: 531041
URL: http://svn.apache.org/viewvc?view=rev&rev=531041
Log:
TOBAGO-324 ( Translation layer is not hiding the complete app, but only for the fixed size of the screen resolution)
Modified:
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?view=diff&rev=531041&r1=531040&r2=531041
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Sat Apr 21 07:44:45 2007
@@ -265,6 +265,11 @@
makeOverlaySemitransparent: function() {
var overlay = Tobago.element(Tobago.page.id + "-overlay");
if (overlay) {
+ if (navigator.appName.indexOf("Explorer") != -1) { // IE
+ Tobago.addEventListener(window, "scroll", Tobago.doOverlayScroll);
+ } else {
+ overlay.style.position = "fixed";
+ }
var img = document.createElement("IMG");
img.style.width = overlay.clientWidth;
img.style.height = overlay.clientHeight;
@@ -308,6 +313,12 @@
loadOverlayWait: function() {
var img = Tobago.element(Tobago.page.id + "-overlay-wait");
img.src = Tobago.OVERLAY_WAIT;
+ },
+
+ doOverlayScroll: function() {
+ var overlay = Tobago.element(Tobago.page.id + "-overlay");
+ overlay.style.top = overlay.parentNode.scrollTop;
+ overlay.style.left = overlay.parentNode.scrollLeft;
},
/**