From dc2e8e7d8c585985d80960d60316b9600d159f5a Mon Sep 17 00:00:00 2001 From: Nils Christian Ehmke <nie@informatik.uni-kiel.de> Date: Thu, 2 May 2013 19:14:55 +0200 Subject: [PATCH] Temporary patch to solve a problem with Opera. --- Kieker.WebGUI/src/main/webapp/js/jit.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Kieker.WebGUI/src/main/webapp/js/jit.js b/Kieker.WebGUI/src/main/webapp/js/jit.js index 23d8d636..4cec46fc 100644 --- a/Kieker.WebGUI/src/main/webapp/js/jit.js +++ b/Kieker.WebGUI/src/main/webapp/js/jit.js @@ -17674,14 +17674,16 @@ $jit.GraphFlow.$extend = true; }, 'contains': function(node, pos){ - var npos = node.pos.getc(true), - dim = node.data.$dim/2, - width = node.data.$width/2 -dim, - height = node.data.$height/2 -dim, - checkPosX = pos.x - npos.x, - checkPosY = pos.y - npos.y; - var notInCloseButton = (checkPosX < width-dim || checkPosY > dim-height); - return notInCloseButton && Math.abs(checkPosX) <= width && Math.abs(checkPosY) <= height; + var npos = node.pos.getc(true); + var dim = node.data.$dim/2; + var width = node.data.$width/2 -dim; + var height = node.data.$height/2 -dim; + var checkPosX = pos.x - npos.x; + var checkPosY = pos.y - npos.y; + + var inBounds = Math.abs(checkPosX) <= width && Math.abs(checkPosY) <= height; + var notInCloseButton = (checkPosX < width - dim || checkPosY > dim - height); + return notInCloseButton && inBounds; } }, -- GitLab