Skip to content

Commit

Permalink
fix: Position within viewport instead of body
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann committed Aug 9, 2017
1 parent ce0036a commit 0122b4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,12 @@
<a name="1.3.5"></a>
# [1.3.5](https://github.com/isaacplmann/ngx-contextmenu) (2017-08-09)


### Fixes

* **position:** Position within viewport instead of body


<a name="1.3.4"></a>
# [1.3.4](https://github.com/isaacplmann/ngx-contextmenu) (2017-07-12)

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ngx-contextmenu",
"version": "1.3.4",
"version": "1.3.5",
"description": "An Angular component to show a context menu on an arbitrary component",
"keywords": [
"angular2",
Expand Down
1 change: 1 addition & 0 deletions src/lib/contextMenuContent.component.ts
Expand Up @@ -133,6 +133,7 @@ export class ContextMenuContentComponent implements OnInit, OnDestroy, AfterView
} else {
this.mouseLocation.top = this.event.clientY + distanceFromBottom + 'px';
}
}
if (isMenuOutsideBody) {
this.showMenu();
}
Expand Down

0 comments on commit 0122b4b

Please sign in to comment.