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

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

Updated Branches:
  refs/heads/master cee48e8d9 -> b6b3aa07c


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

This reverts commit 2a2db124c49f8c5768250bfef04230626bcd932e.


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

Branch: refs/heads/master
Commit: b6b3aa07c0b8ddd360c17fc4f00b3c3abd3ec0b4
Parents: 2a2db12
Author: Johan Compagner <jc...@apache.org>
Authored: Mon Feb 27 14:09:54 2012 +0100
Committer: Johan Compagner <jc...@apache.org>
Committed: Mon Feb 27 14:09:54 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/b6b3aa07/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 c9b40f2..1aa8208 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;
 			}