Updated Branches: refs/heads/wicket-6.x f9ef8ed90 -> 216949c1a
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/216949c1 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/216949c1 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/216949c1 Branch: refs/heads/wicket-6.x Commit: 216949c1a6035e19de739603dcc82167ca43251a Parents: f9ef8ed 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:57:43 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/216949c1/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 +})();
