[richfaces-svn-commits] JBoss Rich Faces SVN: r5149 - trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Fri Jan 4 13:23:38 EST 2008
Author: vmolotkov
Date: 2008-01-04 13:23:38 -0500 (Fri, 04 Jan 2008)
New Revision: 5149
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
Log:
latest version
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js 2008-01-04 18:23:12 UTC (rev 5148)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js 2008-01-04 18:23:38 UTC (rev 5149)
@@ -0,0 +1,14 @@
+if (!window.Richfaces) window.Richfaces = {};
+
+Richfaces.getDocumentHeight = function() {
+ if (self.innerHeight) { // all except Explorer
+ return self.innerHeight;
+ }
+ else if (document.documentElement && document.documentElement.clientHeight) {
+ // Explorer 6 Strict Mode
+ return document.documentElement.clientHeight;
+ }
+ else if (document.body) { // other Explorers
+ return document.body.clientHeight;
+ }
+}
\ No newline at end of file
More information about the richfaces-svn-commits
mailing list