mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 04:24:12 +00:00
Make a note about smart context menu positioning
This commit is contained in:
parent
faf0ae629a
commit
1771923d47
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue