Author: vmolotkov
Date: 2008-05-13 11:37:12 -0400 (Tue, 13 May 2008)
New Revision: 8561
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
Log:
combolist positioning was corrected.
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 2008-05-13
15:32:24 UTC (rev 8560)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js 2008-05-13
15:37:12 UTC (rev 8561)
@@ -47,7 +47,7 @@
Richfaces.getDocumentHeight = function() {
- var viewportheight = null;
+ /*var viewportheight = null;
if (typeof window.innerWidth != 'undefined') {
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use
window.innerWidth and window.innerHeight
viewportheight = window.innerHeight;
@@ -59,8 +59,9 @@
} else {
// older versions of IE
viewportheight = document.getElementsByTagName('body')[0].clientHeight;
- }
- return viewportheight;
+ }*/
+ return (document.viewport.getDimensions().height +
document.viewport.getScrollOffsets().top);
+ //return viewportheight;
}
Richfaces.getScrollWidth = function(elem) {