Skip to content

Commit 48fa43b

Browse files
committed
simplifying the code, appears to not be useful
1 parent ebd5c65 commit 48fa43b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/vs/editor/contrib/hover/browser/contentHover.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -799,13 +799,8 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
799799
const containerDomNode = this._hoverWidget.containerDomNode;
800800
const contentsDomNode = this._hoverWidget.contentsDomNode;
801801
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));
809804
}
810805

811806
public onContentsChanged(): void {

0 commit comments

Comments
 (0)