Make a note about smart context menu positioning

This commit is contained in:
Jordan Eldredge 2018-05-05 16:50:30 -07:00
parent faf0ae629a
commit 1771923d47

View file

@ -27,6 +27,8 @@ export default class ContextMenuWraper extends React.Component {
const { pageX, pageY } = e;
this.setState({
selected: true,
// TODO: We could do an initial render to see if the menu fits here
// and do a second render if it does not.
offsetTop: pageY,
offsetLeft: pageX
});