@@ -352,13 +352,12 @@ var Autocomplete = function() {
352
352
353
353
this . showDocTooltip = function ( item ) {
354
354
if ( ! this . tooltipNode ) {
355
- this . tooltipNode = item . docHTML ? dom . createElement ( "div" ) : dom . createElement ( "pre ") ;
355
+ this . tooltipNode = dom . createElement ( "div" ) ;
356
356
this . tooltipNode . className = "ace_tooltip ace_doc-tooltip" ;
357
357
this . tooltipNode . style . margin = 0 ;
358
358
this . tooltipNode . style . pointerEvents = "auto" ;
359
359
this . tooltipNode . tabIndex = - 1 ;
360
360
this . tooltipNode . onblur = this . blurListener . bind ( this ) ;
361
-
362
361
}
363
362
364
363
var tooltipNode = this . tooltipNode ;
@@ -367,15 +366,14 @@ var Autocomplete = function() {
367
366
} else if ( item . docText ) {
368
367
tooltipNode . textContent = item . docText ;
369
368
}
370
-
369
+
371
370
if ( ! tooltipNode . parentNode )
372
371
document . body . appendChild ( tooltipNode ) ;
373
372
var popup = this . popup ;
374
373
var rect = popup . container . getBoundingClientRect ( ) ;
375
374
tooltipNode . style . top = popup . container . style . top ;
376
375
tooltipNode . style . bottom = popup . container . style . bottom ;
377
- tooltipNode . style . backgroundImage = "none" ;
378
- tooltipNode . style . backgroundColor = "#FFFFEE" ;
376
+
379
377
if ( window . innerWidth - rect . right < 320 ) {
380
378
tooltipNode . style . right = window . innerWidth - rect . left + "px" ;
381
379
tooltipNode . style . left = "" ;
@@ -384,10 +382,6 @@ var Autocomplete = function() {
384
382
tooltipNode . style . right = "" ;
385
383
}
386
384
tooltipNode . style . display = "block" ;
387
- tooltipNode . style . maxWidth = "500px" ;
388
- tooltipNode . style . whiteSpace = "normal" ;
389
- tooltipNode . style . wordWrap = "normal" ;
390
- tooltipNode . style . textAlign = "left" ;
391
385
} ;
392
386
393
387
this . hideDocTooltip = function ( ) {
0 commit comments