提交 0bdc1c37 编写于 作者: A Alex Dima

Fixes #1977

上级 88535290
...@@ -232,13 +232,14 @@ export class ViewContentWidgets extends ViewPart { ...@@ -232,13 +232,14 @@ export class ViewContentWidgets extends ViewPart {
} }
let left0 = visibleRange.left - ctx.viewportLeft; let left0 = visibleRange.left - ctx.viewportLeft;
if (left0 < 0 || left0 > this._contentWidth) {
return null;
}
let width = domNode.clientWidth, let width = domNode.clientWidth,
height = domNode.clientHeight; height = domNode.clientHeight;
if (left0 + width < 0 || left0 > this._contentWidth) {
return null;
}
let aboveTop = visibleRange.top - height, let aboveTop = visibleRange.top - height,
belowTop = visibleRange.top + visibleRange.height, belowTop = visibleRange.top + visibleRange.height,
left = left0 + this._contentLeft; left = left0 + this._contentLeft;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册