File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 230230 ( completion . options . container || document . body ) . appendChild ( hints ) ;
231231 var box = hints . getBoundingClientRect ( ) , overlapY = box . bottom - winH ;
232232 var scrolls = hints . scrollHeight > hints . clientHeight + 1
233+ var startScroll = cm . getScrollInfo ( ) ;
234+
233235 if ( overlapY > 0 ) {
234236 var height = box . bottom - box . top , curTop = pos . top - ( pos . bottom - box . top ) ;
235237 if ( curTop - height > 0 ) { // Fits above cursor
273275 cm . on ( "focus" , this . onFocus = function ( ) { clearTimeout ( closingOnBlur ) ; } ) ;
274276 }
275277
276- var startScroll = cm . getScrollInfo ( ) ;
277278 cm . on ( "scroll" , this . onScroll = function ( ) {
278279 var curScroll = cm . getScrollInfo ( ) , editor = cm . getWrapperElement ( ) . getBoundingClientRect ( ) ;
279280 var newTop = top + startScroll . top - curScroll . top ;
You can’t perform that action at this time.
0 commit comments