From: Mike Rylander Date: Mon, 9 Feb 2015 21:42:47 +0000 (-0500) Subject: LP#1402797 Attach the context menu to the body for proper coordinate mapping X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=79893c1d9b43744c3e8a8ae99445753e9ccbc940;p=evergreen%2Fmasslnc.git LP#1402797 Attach the context menu to the body for proper coordinate mapping Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- 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({