File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/vs/editor/contrib/hover/browser Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -563,6 +563,7 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
563
563
const width = size . width - 2 * SASH_WIDTH_MINUS_BORDER ;
564
564
const height = size . height - 2 * SASH_WIDTH_MINUS_BORDER ;
565
565
this . _setHoverWidgetDimensions ( width , height ) ;
566
+ // measure if has horizontal scorllbar after setting the dimensions
566
567
if ( this . _hasHorizontalScrollbar ( ) ) {
567
568
this . _adjustContentsBottomPadding ( ) ;
568
569
this . _setContentsDomNodeDimensions ( width , height - SCROLLBAR_WIDTH ) ;
@@ -587,13 +588,7 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
587
588
return ;
588
589
}
589
590
const position = this . _visibleData . showAtPosition ;
590
- let availableVerticalSpace : number | undefined ;
591
- if ( this . _renderingAbove === ContentWidgetPositionPreference . ABOVE ) {
592
- availableVerticalSpace = this . _availableVerticalSpaceAbove ( position ) ;
593
- } else {
594
- availableVerticalSpace = this . _availableVerticalSpaceBelow ( position ) ;
595
- }
596
- return availableVerticalSpace ;
591
+ return this . _renderingAbove === ContentWidgetPositionPreference . ABOVE ? this . _availableVerticalSpaceAbove ( position ) : this . _availableVerticalSpaceBelow ( position ) ;
597
592
}
598
593
599
594
private _findAvailableSpaceHorizontally ( ) : number | undefined {
You can’t perform that action at this time.
0 commit comments