Author: sergeyhalipov
Date: 2008-01-16 12:42:51 -0500 (Wed, 16 Jan 2008)
New Revision: 5434
Modified:
branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-1918
Modified:
branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-16
17:09:26 UTC (rev 5433)
+++
branches/3.1.x/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-16
17:42:51 UTC (rev 5434)
@@ -849,6 +849,9 @@
correctShadowSize: function(event) {
var eContentDiv = $(this.contentDiv);
var eShadowDiv = $(this.shadowDiv);
+ if (!eContentDiv || !eShadowDiv) {
+ return;
+ }
var eIframe = $(this.iframe);
var cWidth = eContentDiv.clientWidth;
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-16
17:09:26 UTC (rev 5433)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-16
17:42:51 UTC (rev 5434)
@@ -861,6 +861,9 @@
correctShadowSizeEx: function(eContentDiv) {
var eShadowDiv = $(this.shadowDiv);
var eContentTable = $(this.contentTable);
+ if (!eContentDiv || !eShadowDiv || !eContentTable) {
+ return;
+ }
var eIframe = $(this.iframe);
var dx = 0;