mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
f2ba3e863f
commit
743fd6ff25
3 changed files with 12 additions and 4 deletions
|
@ -30,6 +30,9 @@ define([
|
|||
|
||||
input.autocomplete = new Autocomplete(input);
|
||||
|
||||
input.$actions = $("#editor_actions");
|
||||
|
||||
|
||||
ace.require('ace/ext/language_tools').addCompleter(input.autocomplete.completer);
|
||||
|
||||
input.commands.addCommand({
|
||||
|
|
|
@ -55,7 +55,8 @@ define([
|
|||
var CURRENT_REQ_RANGE = null;
|
||||
|
||||
editor.$el = $el;
|
||||
editor.$actions = $("#editor_actions");
|
||||
// place holder for an action bar, needs to be set externally.
|
||||
editor.$actions = null;
|
||||
|
||||
// mixin the RowParser
|
||||
editor.parser = new RowParser(editor);
|
||||
|
@ -371,6 +372,9 @@ define([
|
|||
};
|
||||
|
||||
return function () {
|
||||
if (!editor.$actions) {
|
||||
return;
|
||||
}
|
||||
if (CURRENT_REQ_RANGE) {
|
||||
// elements are positioned relative to the editor's container
|
||||
// pageY is relative to page, so subtract the offset
|
||||
|
|
|
@ -42,8 +42,8 @@ body.fouc {
|
|||
right: 0;
|
||||
line-height: 1;
|
||||
padding: 1px 3px 0 0;
|
||||
/* by pass any other element in ace and resize bar */
|
||||
z-index: 2000;
|
||||
/* by pass any other element in ace and resize bar, but not modal popups */
|
||||
z-index: 1005;
|
||||
}
|
||||
|
||||
#editor_actions > .btn-group > a {
|
||||
|
@ -73,7 +73,8 @@ body.fouc {
|
|||
#autocomplete {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
/* by pass any other element in ace and resize bar, but not modal popups */
|
||||
z-index: 1003;
|
||||
margin-top: 22px;
|
||||
/*font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;*/
|
||||
/*font-size: 12px;*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue