feat(context-pad): pass mouse position to the popup menu

Closes #414
This commit is contained in:
Ricardo Matias 2016-01-05 14:37:30 +01:00 committed by pedesen
parent 348a0b2d99
commit b233e7f6ed
1 changed files with 4 additions and 2 deletions

View File

@ -241,7 +241,9 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
title: 'Change type',
action: {
click: function(event, element) {
replaceMenu.open(getReplaceMenuPosition(element));
replaceMenu.open(assign(getReplaceMenuPosition(element), {
cursor: { x: event.x, y: event.y }
}), element);
}
}
}
@ -317,4 +319,4 @@ function isEventType(eventBo, type, definition) {
});
return isType && isDefinition;
}
}