From 79893c1d9b43744c3e8a8ae99445753e9ccbc940 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 9 Feb 2015 16:42:47 -0500 Subject: [PATCH] LP#1402797 Attach the context menu to the body for proper coordinate mapping Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/services/grid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/grid.js b/Open-ILS/web/js/ui/default/staff/services/grid.js index f5fbc4e24d..f5f1237693 100644 --- a/Open-ILS/web/js/ui/default/staff/services/grid.js +++ b/Open-ILS/web/js/ui/default/staff/services/grid.js @@ -491,7 +491,7 @@ angular.module('egGridMod', } $scope.hideActionContextMenu = function () { - var menu_dom = $($scope.grid_element).find('.grid-action-dropdown')[0]; + var menu_dom = $('body').find('.grid-action-dropdown')[0]; $(menu_dom).css({ display: '', width: $scope.action_context_width, @@ -510,7 +510,7 @@ angular.module('egGridMod', $scope.action_context_x = $(menu_dom).css('left'); $scope.action_context_parent = $(menu_dom).parent(); - $($scope.grid_element).append($(menu_dom)); + $('body').append($(menu_dom)); $('body').bind('click.remove_context_menu', $scope.hideActionContextMenu); $(menu_dom).css({ -- 2.11.0