You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2012/02/27 14:03:45 UTC

git commit: we where skipping the last element in the tree, this caused jumping windows in chrome en safari

Updated Branches:
  refs/heads/wicket-1.4.x 7f32ecfee -> 6f677e797


we where skipping the last element in the tree, this caused jumping
windows in chrome en safari

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

Branch: refs/heads/wicket-1.4.x
Commit: 6f677e7974258b2cb0729d171654c3930e84bc0d
Parents: 7f32ecf
Author: Johan Compagner <jc...@apache.org>
Authored: Mon Feb 27 14:02:15 2012 +0100
Committer: Johan Compagner <jc...@apache.org>
Committed: Mon Feb 27 14:02:15 2012 +0100

----------------------------------------------------------------------
 .../extensions/ajax/markup/html/modal/res/modal.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/6f677e79/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
----------------------------------------------------------------------
diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
index 73025a0..b4b6e1c 100644
--- a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
+++ b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
@@ -69,7 +69,7 @@ Wicket.Iframe = {
 	findPosX: function(e) { 
 		if (e.offsetParent) {
 			var c = 0;
-			while (e.offsetParent) {
+			while (e) {
 				c += e.offsetLeft
 				e = e.offsetParent;
 			}
@@ -87,7 +87,7 @@ Wicket.Iframe = {
 	findPosY: function(e) {
 		if (e.offsetParent) {
 			var c = 0;
-			while (e.offsetParent) {
+			while (e) {
 				c += e.offsetTop
 				e = e.offsetParent;
 			}