Skip to content
This repository was archived by the owner on Nov 3, 2019. It is now read-only.

Commit b04e925

Browse files
MillerRends82
authored andcommitted
fix(open): specify contextmenu-position in pixel
1 parent 13b9a0f commit b04e925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directive/contextmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function CotextmenuCtrl($scope, $window, $rootScope) {
8585

8686
function open(item, x, y) {
8787
broadcastClose();
88-
$element.css({top: y, left: x})
88+
$element.css({top: y + 'px', left: x + 'px'})
8989
.toggleClass('dropup', isDropup(y))
9090
.toggleClass('open', true)
9191
.toggleClass('ng-hide', false);

0 commit comments

Comments
 (0)