@@ -772,13 +772,6 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
772
772
}
773
773
}
774
774
775
- private _setResizableDomNodeDimensions ( width : number , height : number ) : void {
776
- this . _resizableNode . layout ( height , width ) ;
777
- const resizableDomNode = this . _resizableNode . domNode ;
778
- resizableDomNode . style . width = `${ width } px` ;
779
- resizableDomNode . style . height = `${ height } px` ;
780
- }
781
-
782
775
private _setPersistedHoverDimensionsOrRenderNormally ( ) : void {
783
776
const persistedSize = this . findPersistedSize ( ) ;
784
777
// Suppose a persisted size is defined
@@ -789,7 +782,7 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
789
782
} else {
790
783
// Added because otherwise the initial size of the hover content is smaller than should be
791
784
const layoutInfo = this . _editor . getLayoutInfo ( ) ;
792
- this . _setResizableDomNodeDimensions ( layoutInfo . width , layoutInfo . height ) ;
785
+ this . _resizableNode . layout ( layoutInfo . height , layoutInfo . width ) ;
793
786
this . _setHoverWidgetDimensions ( 'auto' , 'auto' ) ;
794
787
// Added otherwise rendered too small horizontally
795
788
const containerDomNode = this . _hoverWidget . containerDomNode ;
@@ -821,7 +814,7 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
821
814
const containerDomNode = this . _hoverWidget . containerDomNode ;
822
815
const clientHeight = containerDomNode . clientHeight ;
823
816
const clientWidth = containerDomNode . clientWidth ;
824
- this . _setResizableDomNodeDimensions ( clientWidth + 2 * SASH_WIDTH_MINUS_BORDER , clientHeight + 2 * SASH_WIDTH_MINUS_BORDER ) ;
817
+ this . _resizableNode . layout ( clientHeight + 2 * SASH_WIDTH_MINUS_BORDER , clientWidth + 2 * SASH_WIDTH_MINUS_BORDER ) ;
825
818
this . _setContainerAbsolutePosition ( SASH_WIDTH_MINUS_BORDER - 1 , SASH_WIDTH_MINUS_BORDER - 1 ) ;
826
819
if ( this . _hasHorizontalScrollbar ( ) ) {
827
820
this . _adjustContentsBottomPadding ( ) ;
0 commit comments