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 @@ -799,13 +799,8 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
799
799
const containerDomNode = this . _hoverWidget . containerDomNode ;
800
800
const contentsDomNode = this . _hoverWidget . contentsDomNode ;
801
801
const maxRenderingHeight = this . _findMaximumRenderingHeight ( ) ?? Infinity ;
802
- let hoverHeight : number = height ;
803
- const persistedSize = this . findPersistedSize ( ) ;
804
- if ( persistedSize ) {
805
- hoverHeight = persistedSize . height - 2 * SASH_WIDTH_MINUS_BORDER ;
806
- }
807
- this . _setContainerDomNodeDimensions ( containerDomNode . clientWidth , Math . min ( maxRenderingHeight , hoverHeight ) ) ;
808
- this . _setContentsDomNodeDimensions ( contentsDomNode . clientWidth , Math . min ( maxRenderingHeight , hoverHeight - SCROLLBAR_WIDTH ) ) ;
802
+ this . _setContainerDomNodeDimensions ( containerDomNode . clientWidth , Math . min ( maxRenderingHeight , height ) ) ;
803
+ this . _setContentsDomNodeDimensions ( contentsDomNode . clientWidth , Math . min ( maxRenderingHeight , height - SCROLLBAR_WIDTH ) ) ;
809
804
}
810
805
811
806
public onContentsChanged ( ) : void {
You can’t perform that action at this time.
0 commit comments