提交 d6052bb3 编写于 作者: S SteVen Batten 提交者: João Moreno

fixes #73218

上级 7c57aaa6
......@@ -242,6 +242,9 @@ export class ContextView extends Disposable {
// if view intersects vertically with anchor, shift it horizontally
if (Range.intersects({ start: top, end: top + viewSizeHeight }, { start: verticalAnchor.offset, end: verticalAnchor.offset + verticalAnchor.size })) {
horizontalAnchor.size = around.width;
if (anchorAlignment === AnchorAlignment.RIGHT) {
horizontalAnchor.offset = around.left;
}
}
const left = layout(window.innerWidth, viewSizeWidth, horizontalAnchor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册