From 79e3c25cf4d24220b73c6d5f8cba43af38e52545 Mon Sep 17 00:00:00 2001 From: ciaranj Date: Sat, 23 Oct 2010 04:55:20 +0800 Subject: [PATCH] Fix the position calculation for wired-field temrinals --- js/Terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Terminal.js b/js/Terminal.js index 90d69dc3..9d143a1f 100644 --- a/js/Terminal.js +++ b/js/Terminal.js @@ -319,7 +319,7 @@ WireIt.Terminal.prototype = { curleft += obj.offsetLeft; curtop += obj.offsetTop; obj = obj.offsetParent; - } while ( !!obj && obj != layerEl); + } while ( !!obj && obj != layerEl && !YAHOO.util.Dom.hasClass(obj, "WireIt-Layer")); } return [curleft+15,curtop+15];