Updated Branches:
  refs/heads/wicket-1.5.x fb09a1c3f -> 97d79a172

WICKET-5491 Wicket.DateTime.getViewportHeight() returning undefined on IE8, 
positions calendar out of viewport


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/97d79a17
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/97d79a17
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/97d79a17

Branch: refs/heads/wicket-1.5.x
Commit: 97d79a172d70cd9c1fdcb06606bc4fb1aab1482c
Parents: fb09a1c
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Thu Jan 30 09:59:04 2014 +0100
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Thu Jan 30 09:59:04 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/wicket/extensions/yui/calendar/wicket-date.js  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/97d79a17/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
----------------------------------------------------------------------
diff --git 
a/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
 
b/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
index 128b6d3..c0a8ab4 100644
--- 
a/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
+++ 
b/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
@@ -112,7 +112,7 @@ Wicket.DateTime.getViewportHeight = function() {
        if (window.innerHeight) // all browsers except IE
                viewPortHeight = window.innerHeight;
        else if (document.documentElement && 
document.documentElement.clientHeight) // IE 6 strict mode
-               viewPortHeight = document.documentElement.height;
+               viewPortHeight = document.documentElement.clientHeight;
        else if (document.body) // other IEs
                viewPortHeight = document.body.clientHeight;
        return viewPortHeight;

Reply via email to