Fixes #69238: Avoid placing the hover above the page

This commit is contained in:
Alexandru Dima
2019-10-11 17:32:32 +02:00
parent 7680bfc470
commit 3ee53ad714

View File

@@ -380,7 +380,7 @@ class Widget {
belowLeft = absoluteBelowLeft;
}
return { fitsAbove, aboveTop, aboveLeft, fitsBelow, belowTop, belowLeft };
return { fitsAbove, aboveTop: Math.max(aboveTop, TOP_PADDING), aboveLeft, fitsBelow, belowTop, belowLeft };
}
private _prepareRenderWidgetAtExactPositionOverflowing(topLeft: Coordinate): Coordinate {