From a86fe8c4939e30fe20e2058136b3e44e835ae32d Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Mon, 25 Jun 2012 15:07:44 -0700 Subject: Fixing bottom hit test for popup This address clicking outside (below) and closing the popup. The wrong value was being used. --- js/panels/color/colorpopup-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/panels') diff --git a/js/panels/color/colorpopup-manager.js b/js/panels/color/colorpopup-manager.js index cf6fd7ac..dc50154c 100755 --- a/js/panels/color/colorpopup-manager.js +++ b/js/panels/color/colorpopup-manager.js @@ -114,7 +114,7 @@ exports.ColorPopupManager = Montage.create(Component, { right = left + parseInt(element.popup.element.offsetWidth); //Getting vertical limits top = parseInt(element.popup.element.style.top) + parseInt(element.popup.element.style.marginTop); - bottom = left + parseInt(element.popup.element.offsetHeight); + bottom = top + parseInt(element.popup.element.offsetHeight); //Checking click position in relation to limits if ((e._event.clientX < left || e._event.clientX > right) || (e._event.clientY < top || e._event.clientY > bottom)) { //Hides popups since click is outside limits -- cgit v1.2.3