Merge pull request +6204 from c9/fix/share-urls-contextmenu

Increase z-index of menu on click
pull/39/head
Matthijs van Henten 2015-02-17 17:04:32 +01:00
commit 854d1b7aa0
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -60,7 +60,7 @@
"c9.ide.language.javascript.tern": "#a65ad88dd9",
"c9.ide.language.javascript.infer": "#702bbd4dcd",
"c9.ide.language.jsonalyzer": "#eaf8152b03",
"c9.ide.collab": "#d07855bac7",
"c9.ide.collab": "#13fe5c8f27",
"c9.ide.local": "#2bfd7ff051",
"c9.ide.find": "#989c06e6a7",
"c9.ide.find.infiles": "#28b3cfcb47",

Wyświetl plik

@ -932,6 +932,7 @@ define(function(require, exports, module) {
plugin.on("load", function(){
aml = new ui.menu({
id: options.id,
zindex: options.zindex,
"onprop.visible" : function(e) {
emit(e.value ? "show" : "hide", lastCoords);
checkItems.call(this, e);
@ -1032,6 +1033,12 @@ define(function(require, exports, module) {
* @readonly
*/
get visible(){ return aml.visible; },
/**
* Specifies the zindex of the menu
* @property {Number} zindex
*/
get zindex(){ return aml && ui.getStyle(aml.$ext, "z-index"); },
set zindex(value) { aml && aml.setAttribute("zindex", value); },
/**
* The menu items appended to this menu
* @property {MenuItem[]} items