[richfaces-issues] [JBoss JIRA] Commented: (RF-1918) ModalPanel JavaScript errors when using autosized attribute

Carl Howarth (JIRA) jira-events at lists.jboss.org
Wed Jan 16 06:08:19 EST 2008


    [ http://jira.jboss.com/jira/browse/RF-1918?page=comments#action_12395290 ] 
            
Carl Howarth commented on RF-1918:
----------------------------------

Just for info, I have done a workaround that works for me for the time being, though i'm sure there must be more to the fix than this:

correctShadowSize: function(event) {
		var eContentDiv = $(this.contentDiv);
		var eShadowDiv = $(this.shadowDiv);
		var eIframe = $(this.iframe);
		
		if (eContentDiv != null) { //added null check to get around multiple JS errors.
			var cWidth = eContentDiv.clientWidth;
			var cHeight = eContentDiv.clientHeight;
		
			eShadowDiv.style.width = cWidth+"px";
			eShadowDiv.style.height = cHeight+"px";
			
			if (eIframe) {
				eIframe.style.width = cWidth+"px";
				eIframe.style.height = cHeight+"px";
			}
		}
}

> ModalPanel JavaScript errors when using autosized attribute
> -----------------------------------------------------------
>
>                 Key: RF-1918
>                 URL: http://jira.jboss.com/jira/browse/RF-1918
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>         Environment: RF 3.1.3.GA with MyFaces 1.2.0, Tomahawk 1.1.6 running in tomcat 6.0.14. under JDK 1.6 Update 3 on Windows XP
>            Reporter: Carl Howarth
>         Assigned To: Sergey Halipov
>             Fix For: 3.2.0
>
>
> Opening a modal panel using the showWhenRendered option and autoSized = true - When I close the modal panel I get the following javascipt error tens and tens of times. This is the error as appears in firebug:
> "eContentDiv has no properties
> http://localhost:8090/myapp/faces/a4j_3_1_3-SNAPSHOTorg/richfaces/renderkit/html/scripts/modalPanel.js
> Line 89"
> Without autosize this error does not occur. The error doesn't seem to affect any functionality but slows down the app. The error occurs both in FireFox 2 and IE6. Is still an issue on today's 3.1.4 SNAPSHOT. I can't find any other reference to this error.
> http://jboss.com/index.html?module=bb&op=viewtopic&t=127341

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list