Author: nbelaevski
Date: 2009-03-26 14:21:19 -0400 (Thu, 26 Mar 2009)
New Revision: 13230
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
Log:
https://jira.jboss.org/jira/browse/RF-6600
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
===================================================================
---
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js 2009-03-26
18:10:54 UTC (rev 13229)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js 2009-03-26
18:21:19 UTC (rev 13230)
@@ -63,15 +63,18 @@
var viewportheight = 0;
- // must be checked in the next prototype release version !!!
+ /*// must be checked in the next prototype release version !!!
if(Richfaces.browser.isIE6) {
var height = (document.compatMode=='CSS1Compat') ?
document.documentElement['clientHeight'] : document.body['clientHeigth'];
var scrollHeight = document.viewport.getScrollOffsets().top;
viewportheight = height + scrollHeight;
} else {
viewportheight = document.viewport.getDimensions().height +
document.viewport.getScrollOffsets().top;
- }
+ }*/
+ var jqw = jQuery(window);
+ viewportheight = jqw.height() + jqw.scrollTop();
+
return viewportheight;
}