Skip to content

Commit d63892f

Browse files
authored
Merge pull request #273740 from microsoft/tyriar/273193
Use offset not client height for determining widget height
2 parents 9306ddc + ea2eb0d commit d63892f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/hover/browser/hoverWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ export class HoverWidget extends Widget implements IHoverWidget {
553553
// Position hover below the target
554554
else if (this._hoverPosition === HoverPosition.BELOW) {
555555
// Hover on bottom is going beyond window
556-
if (target.bottom + this._hover.containerDomNode.clientHeight + hoverPointerOffset > this._targetWindow.innerHeight) {
556+
if (target.bottom + this._hover.containerDomNode.offsetHeight + hoverPointerOffset > this._targetWindow.innerHeight) {
557557
this._hoverPosition = HoverPosition.ABOVE;
558558
}
559559
}

0 commit comments

Comments
 (0)