tweak style

This commit is contained in:
nightwing 2013-09-04 13:04:24 +04:00
commit 61d33f4269
2 changed files with 5 additions and 1 deletions

View file

@ -225,6 +225,8 @@ var Autocomplete = function() {
if (keepPopupPosition && this.base && this.completions) {
var pos = this.editor.getCursorPosition();
var prefix = ace.session.getTextRange({start: this.base, end: pos});
if (prefix == this.completions.filterText)
return;
this.completions.setFilter(prefix);
if (!this.completions.filtered.length)
return this.detach();

View file

@ -246,12 +246,14 @@ dom.importCssString("\
z-index: -1;\
}\
.ace_autocomplete .ace_completion-highlight{\
font-weight: bold\
font-weight: bold;\
text-shadow: 0 0 0.5px #000\
}\
.ace_autocomplete {\
width: 280px;\
z-index: 200000;\
background: #fbfbfb;\
color: #444;\
border: 1px lightgray solid;\
position: fixed;\
box-shadow: 2px 3px 5px rgba(0,0,0,.2);\