Skip to content

Commit c35e990

Browse files
committed
adding explaining comment
1 parent 52a78d8 commit c35e990

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ export class ContentHoverWidget extends ResizableContentWidget {
592592
if (!availableSpace) {
593593
return;
594594
}
595+
// Padding needed in order to stop the resizing down to a smaller height
595596
let maximumHeight = CONTAINER_HEIGHT_PADDING;
596597
Array.from(this._hover.contentsDomNode.children).forEach((hoverPart) => {
597598
maximumHeight += hoverPart.clientHeight;

0 commit comments

Comments
 (0)