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:10:31 UTC

[2/2] git commit: Revert "we where skipping the last element in the tree, this caused jumping windows in chrome en safari"

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

This reverts commit 514e652eb1dbc44eb0294f3935b9a11a7cf0814e.


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

Branch: refs/heads/master
Commit: 2a2db124c49f8c5768250bfef04230626bcd932e
Parents: cee48e8
Author: Johan Compagner <jc...@apache.org>
Authored: Mon Feb 27 14:09:26 2012 +0100
Committer: Johan Compagner <jc...@apache.org>
Committed: Mon Feb 27 14:09:26 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/2a2db124/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 1aa8208..c9b40f2 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) {
+			while (e.offsetParent) {
 				c += e.offsetLeft
 				e = e.offsetParent;
 			}
@@ -87,7 +87,7 @@ Wicket.Iframe = {
 	findPosY: function(e) {
 		if (e.offsetParent) {
 			var c = 0;
-			while (e) {
+			while (e.offsetParent) {
 				c += e.offsetTop
 				e = e.offsetParent;
 			}