提交 533b1868 编写于 作者: A Alex Dima

Fixes #51794: Render content widgets even when the anchor position is...

Fixes #51794: Render content widgets even when the anchor position is horizontally scrolled outside the viewport
上级 e636f74c
......@@ -324,11 +324,6 @@ class Widget {
const aboveLeft0 = topLeft.left - ctx.scrollLeft;
const belowLeft0 = bottomLeft.left - ctx.scrollLeft;
if (aboveLeft0 < 0 || aboveLeft0 > this._contentWidth) {
// Don't render if position is scrolled outside viewport
return null;
}
let aboveTop = topLeft.top - height;
let belowTop = bottomLeft.top + this._lineHeight;
let aboveLeft = aboveLeft0 + this._contentLeft;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册