Updated Branches: refs/heads/master ba5b44758 -> bed712564
WICKET-5491 Wicket.DateTime.getViewportHeight() returning undefined on IE8, positions calendar out of viewport (cherry picked from commit 216949c1a6035e19de739603dcc82167ca43251a) Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/bed71256 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/bed71256 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/bed71256 Branch: refs/heads/master Commit: bed712564ad42294455948b78698e3e84d3532b4 Parents: ba5b447 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Thu Jan 30 09:57:43 2014 +0100 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Thu Jan 30 09:58:10 2014 +0100 ---------------------------------------------------------------------- .../org/apache/wicket/extensions/yui/calendar/wicket-date.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/bed71256/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 e82c723..b4c1532 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 @@ -125,7 +125,7 @@ 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; } @@ -426,4 +426,4 @@ Wicket.Event.subscribe('/ajax/call/complete', function(jqEvent, attributes, jqXHR, errorThrown, textStatus) { window.setTimeout(function(){destroy();}, 10); }); -})(); \ No newline at end of file +})();
