@@ -52,10 +52,10 @@ export class ContentHoverController extends Disposable {
5252 ) {
5353 super ( ) ;
5454
55- const initialHeight = this . _editor . getOption ( EditorOption . lineHeight ) + 8 ;
56- const initialWidth = 4 / 3 * initialHeight ;
57- const initialSize = new dom . Dimension ( initialWidth , initialHeight ) ;
58- this . _widget = this . _register ( this . _instantiationService . createInstance ( ContentHoverWidget , this . _editor , initialSize ) ) ;
55+ const minimumHeight = this . _editor . getOption ( EditorOption . lineHeight ) + 8 ;
56+ const minimumWidth = 4 / 3 * minimumHeight ;
57+ const minimumSize = new dom . Dimension ( minimumWidth , minimumHeight ) ;
58+ this . _widget = this . _register ( this . _instantiationService . createInstance ( ContentHoverWidget , this . _editor , minimumSize ) ) ;
5959
6060 // Instantiate participants and sort them by `hoverOrdinal` which is relevant for rendering order.
6161 this . _participants = [ ] ;
@@ -486,10 +486,10 @@ export class ContentHoverWidget extends ResizableContentWidget {
486486
487487 constructor (
488488 editor : ICodeEditor ,
489- initialSize : dom . Dimension ,
489+ minimumSize : dom . Dimension ,
490490 @IContextKeyService contextKeyService : IContextKeyService
491491 ) {
492- super ( editor , initialSize ) ;
492+ super ( editor , minimumSize ) ;
493493 this . _hoverVisibleKey = EditorContextKeys . hoverVisible . bindTo ( contextKeyService ) ;
494494 this . _hoverFocusedKey = EditorContextKeys . hoverFocused . bindTo ( contextKeyService ) ;
495495
0 commit comments