You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/07/30 11:19:11 UTC

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

Author: bommel
Date: Mon Jul 30 02:19:08 2007
New Revision: 560900

URL: http://svn.apache.org/viewvc?view=rev&rev=560900
Log:
(TOBAGO-447) Popup is not displayed using modal="false"

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=560900&r1=560899&r2=560900
==============================================================================
--- 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 Mon Jul 30 02:19:08 2007
@@ -817,11 +817,12 @@
 
     // extend background into scrollable area
     var background = this.element(id);
-    background.style.width = document.body.scrollWidth + 'px';
-    background.style.height = document.body.scrollHeight + 'px';
-    this.popupResizeStub = function() {Tobago.doResizePopupBackground(id);}
-    Tobago.addEventListener(window, "resize", this.popupResizeStub);
-
+    if (background) {
+      background.style.width = document.body.scrollWidth + 'px';
+      background.style.height = document.body.scrollHeight + 'px';
+      this.popupResizeStub = function() {Tobago.doResizePopupBackground(id);}
+      Tobago.addEventListener(window, "resize", this.popupResizeStub);
+    }
     var contentId = id + Tobago.SUB_COMPONENT_SEP + "content";
     var div = this.element(contentId);
     if (div) {