Skip to content

Commit

Permalink
fix context menu to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
datkat21 committed Jan 25, 2024
1 parent 494e2e9 commit 4d21246
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/lib/CtxMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export default {
top: window.innerHeight - bcr.height + "px",
});
}
if (bcr.right > window.innerWidth) {
ctxMenu.style({
top: window.innerWidth - bcr.width + "px",
});
}
});

return ctxMenu;
Expand Down

0 comments on commit 4d21246

Please sign in to comment.