kopia lustrzana https://github.com/c9/core
display contextmenu 1px away from mouse
rodzic
3585e2db30
commit
26a9c07b6a
|
@ -1764,11 +1764,11 @@ define(function(require, exports, module) {
|
|||
|
||||
// Set Gutter Context Menu
|
||||
if (ui.isChildOf(gutter, target, true)) {
|
||||
mnuGutter.show(e.x, e.y);
|
||||
mnuGutter.show(e.x, e.y, "context");
|
||||
}
|
||||
// Set main Ace Context Menu
|
||||
else {
|
||||
mnuAce.show(e.x, e.y);
|
||||
mnuAce.show(e.x, e.y, "context");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
|
@ -946,7 +946,9 @@ define(function(require, exports, module) {
|
|||
aml.removeChild(item.aml);
|
||||
}
|
||||
|
||||
function show(x, y) {
|
||||
function show(x, y, type) {
|
||||
if (type == "context")
|
||||
y++;
|
||||
lastCoords = { x : x, y : y };
|
||||
aml.display(x, y);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue