kopia lustrzana https://github.com/c9/core
fix styling of autocompletion popup
rodzic
1510c85db8
commit
33113618da
|
@ -127,11 +127,7 @@
|
|||
}
|
||||
|
||||
.code_complete_text .ace_text-layer{
|
||||
left : 1px;
|
||||
right : 1px;
|
||||
width : auto;
|
||||
top : 1px;
|
||||
bottom : 1px;
|
||||
margin: 1px!important;
|
||||
}
|
||||
|
||||
.code_complete_text .ace_line{
|
||||
|
|
|
@ -64,8 +64,8 @@ define(function(require, exports, module) {
|
|||
if (!this.ignoreGenericMatches || !match.isGeneric) {
|
||||
var simpleName = match.replaceText.replace("^^", "").replace(/\(\)$/, "");
|
||||
if (name.indexOf(simpleName) === 0) {
|
||||
this.dom.buildDom(["span", { class: "main" + trim },
|
||||
["u", prefix], simpleName.substring(prefix.length),
|
||||
this.dom.buildDom([["span", { class: "main" + trim },
|
||||
["u", prefix], simpleName.substring(prefix.length)],
|
||||
["span", { class: "deferred" }, name.substring(Math.max(simpleName.length, prefix.length))]
|
||||
], lineEl);
|
||||
}
|
||||
|
|
|
@ -135,8 +135,6 @@ var AcePopup = function(parentNode) {
|
|||
var row = popup.getRow();
|
||||
var t = popup.renderer.$textLayer;
|
||||
var selected = t.element.childNodes[row - t.config.firstRow];
|
||||
if (selected == t.selectedNode)
|
||||
return;
|
||||
if (t.selectedNode)
|
||||
dom.removeCssClass(t.selectedNode, "ace_selected");
|
||||
t.selectedNode = selected;
|
||||
|
|
Ładowanie…
Reference in New Issue