Skip to content

Commit af859e2

Browse files
committed
Merge pull request ajaxorg#2189 from takapa/master
Improve tooltips
2 parents 94514a8 + cef48f6 commit af859e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ace/autocomplete.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ var Autocomplete = function() {
352352

353353
this.showDocTooltip = function(item) {
354354
if (!this.tooltipNode) {
355-
this.tooltipNode = dom.createElement("pre");
355+
this.tooltipNode = dom.createElement("div");
356356
this.tooltipNode.className = "ace_tooltip ace_doc-tooltip";
357357
this.tooltipNode.style.margin = 0;
358358
this.tooltipNode.style.pointerEvents = "auto";
@@ -381,7 +381,6 @@ var Autocomplete = function() {
381381
tooltipNode.style.left = (rect.right + 1) + "px";
382382
tooltipNode.style.right = "";
383383
}
384-
// tooltipNode.style.height = rect.height + "px";
385384
tooltipNode.style.display = "block";
386385
};
387386

0 commit comments

Comments
 (0)