diff --git a/lib/ace/autocomplete.js b/lib/ace/autocomplete.js index 9a92c900..3bb035aa 100644 --- a/lib/ace/autocomplete.js +++ b/lib/ace/autocomplete.js @@ -352,7 +352,7 @@ var Autocomplete = function() { this.showDocTooltip = function(item) { if (!this.tooltipNode) { - this.tooltipNode = dom.createElement("pre"); + this.tooltipNode = dom.createElement("div"); this.tooltipNode.className = "ace_tooltip ace_doc-tooltip"; this.tooltipNode.style.margin = 0; this.tooltipNode.style.pointerEvents = "auto"; @@ -381,7 +381,6 @@ var Autocomplete = function() { tooltipNode.style.left = (rect.right + 1) + "px"; tooltipNode.style.right = ""; } - // tooltipNode.style.height = rect.height + "px"; tooltipNode.style.display = "block"; };