Author: sergeyhalipov
Date: 2007-05-10 09:31:32 -0400 (Thu, 10 May 2007)
New Revision: 719
Modified:
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
Log:
Fix modal panel for Safari (
http://jira.jboss.com/jira/browse/RF-169 ).
Modified:
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
===================================================================
---
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2007-05-10
13:21:14 UTC (rev 718)
+++
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2007-05-10
13:31:32 UTC (rev 719)
@@ -8,11 +8,12 @@
return elt.currentStyle[propertyName];
}
- if (document.defaultView && document.defaultView.getComputedStyle) {
+ if (document.defaultView && document.defaultView.getComputedStyle &&
+ document.defaultView.getComputedStyle(elt, null)) {
return document.defaultView.getComputedStyle(elt,
null).getPropertyValue(propertyName);
}
- return {};
+ return "";
};
Richfaces.getComputedStyleSize = function(eltId, propertyName) {